forked from boostorg/container
Simplify redundant tested variants in functional tests.
Move explicit instantiations from functional tests to "explicit_inst_xxx".
This commit is contained in:
@@ -17,10 +17,31 @@ struct empty
|
||||
};
|
||||
|
||||
template class ::boost::container::vector<empty>;
|
||||
volatile ::boost::container::vector<empty> dummy;
|
||||
|
||||
#include <boost/container/allocator.hpp>
|
||||
#include "movable_int.hpp"
|
||||
#include "dummy_test_allocator.hpp"
|
||||
|
||||
namespace boost {
|
||||
namespace container {
|
||||
|
||||
//Explicit instantiation to detect compilation errors
|
||||
template class boost::container::vector
|
||||
< test::movable_and_copyable_int
|
||||
, test::simple_allocator<test::movable_and_copyable_int> >;
|
||||
|
||||
template class boost::container::vector
|
||||
< test::movable_and_copyable_int
|
||||
, allocator<test::movable_and_copyable_int> >;
|
||||
|
||||
template class vec_iterator<int*, true >;
|
||||
template class vec_iterator<int*, false>;
|
||||
|
||||
} //namespace boost {
|
||||
} //namespace container {
|
||||
|
||||
int main()
|
||||
{
|
||||
::boost::container::vector<empty> dummy;
|
||||
(void)dummy;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user