- Timestamp:
- Nov 7, 2015, 10:46:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/network/NetworkFunctionIncludes.h
r10624 r10774 33 33 34 34 #include <boost/preprocessor/cat.hpp> 35 #include <boost/static_assert.hpp>36 35 37 36 #include "NetworkFunction.h" … … 72 71 inline NetworkFunctionBase* registerStaticNetworkFunctionFct(PT ptr, const std::string& name) 73 72 { 74 BOOST_STATIC_ASSERT(sizeof(PT) <= sizeof(NetworkFunctionPointer)); // if this fails your compiler uses bigger pointers for static functions than defined above73 static_assert(sizeof(PT) <= sizeof(NetworkFunctionPointer), "check pointer size"); // if this fails your compiler uses bigger pointers for static functions than defined above 75 74 NetworkFunctionPointer destptr; 76 75 copyPtr(ptr, destptr); … … 81 80 inline NetworkFunctionBase* registerMemberNetworkFunctionFct(PT ptr, const std::string& name) 82 81 { 83 BOOST_STATIC_ASSERT(sizeof(PT) <= sizeof(NetworkFunctionPointer)); // if this fails your compiler uses bigger pointers for a specific kind of member functions than defined above82 static_assert(sizeof(PT) <= sizeof(NetworkFunctionPointer), "check pointer size"); // if this fails your compiler uses bigger pointers for a specific kind of member functions than defined above 84 83 NetworkFunctionPointer destptr; 85 84 copyPtr(ptr, destptr);
Note: See TracChangeset
for help on using the changeset viewer.