forked from boostorg/container
Refactor big test into smaller tests
This commit is contained in:
@@ -19,10 +19,38 @@ struct empty
|
||||
template class ::boost::container::map<empty, empty>;
|
||||
template class ::boost::container::multimap<empty, empty>;
|
||||
|
||||
volatile ::boost::container::map<empty, empty> dummy;
|
||||
volatile ::boost::container::multimap<empty, empty> dummy2;
|
||||
|
||||
#include <boost/container/allocator.hpp>
|
||||
#include <boost/container/adaptive_pool.hpp>
|
||||
#include "movable_int.hpp"
|
||||
#include "dummy_test_allocator.hpp"
|
||||
|
||||
namespace boost {
|
||||
namespace container {
|
||||
|
||||
typedef std::pair<const test::movable_and_copyable_int, test::movable_and_copyable_int> pair_t;
|
||||
|
||||
//Explicit instantiation to detect compilation errors
|
||||
|
||||
//map
|
||||
template class map
|
||||
< test::movable_and_copyable_int
|
||||
, test::movable_and_copyable_int
|
||||
, std::less<test::movable_and_copyable_int>
|
||||
, test::simple_allocator< pair_t >
|
||||
>;
|
||||
|
||||
template class map
|
||||
< test::movable_and_copyable_int
|
||||
, test::movable_and_copyable_int
|
||||
, std::less<test::movable_and_copyable_int>
|
||||
, adaptive_pool< pair_t >
|
||||
>;
|
||||
}} //boost::container
|
||||
|
||||
int main()
|
||||
{
|
||||
::boost::container::map<empty, empty> dummy;
|
||||
::boost::container::multimap<empty, empty> dummy2;
|
||||
(void)dummy; (void)dummy2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user