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:
@@ -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