forked from boostorg/intrusive
Use BOOST_INTRUSIVE_STATIC_ASSERT instead of BOOST_STATIC_ASSERT to reduce library level and weight.
This commit is contained in:
1 parent
60def75ac2
commit
e84e9b7b2e
48 files changed
+240
-246
No files matched your search
@@ -10,8 +10,6 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//[doc_map_code
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
#include <boost/intrusive/set.hpp>
|
||||
#include <boost/intrusive/unordered_set.hpp>
|
||||
#include <vector>
|
||||
@@ -50,9 +48,6 @@ typedef unordered_set< MyClass, key_of_value<first_int_is_key> > UnorderedMap;
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_STATIC_ASSERT((boost::is_same< OrderedMap::key_type, int>::value));
|
||||
BOOST_STATIC_ASSERT((boost::is_same<UnorderedMap::key_type, int>::value));
|
||||
|
||||
//Create several MyClass objects, each one with a different value
|
||||
//and insert them into the omap
|
||||
std::vector<MyClass> values;
|
||||
|
||||
Reference in new issue
Block a user