4 Commits

Author SHA1 Message Date
kwolekr
6faedaa0ea Add STATIC_ASSERT() macro and use it 2015-10-27 22:27:32 -04:00
kwolekr
e0e2bb3117 Add DISABLE_CLASS_COPY macro (and use it)
Use this macro to disallow copying of an object using the assignment
operator or copy constructor.  This catches otherwise silent-but-deadly
mistakes such as "ServerMap map = env->getMap();" at compile time.

If so desired, it is still possible to copy a class, but it now requires
an explicit call to memcpy or std::copy.
2015-10-27 22:05:08 -04:00
PilzAdam
bdda29084e Fix missing #include 2015-10-27 15:55:34 +01:00
kwolekr
b1e49cb537 Move basic, non-numeric macros from util/numeric.h to basicmacros.h 2015-10-27 01:53:45 -04:00