From 08918078aa3d1f926d984e958406a5e24d618c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 7 Sep 2015 18:33:51 +0200 Subject: [PATCH] Add missing small vector's explicit instantiation test --- .../explicit_inst_small_vector_test.vcproj | 136 ++++++++++++++++++ test/explicit_inst_small_vector_test.cpp | 26 ++++ 2 files changed, 162 insertions(+) create mode 100644 proj/vc7ide/explicit_inst_small_vector_test.vcproj create mode 100644 test/explicit_inst_small_vector_test.cpp diff --git a/proj/vc7ide/explicit_inst_small_vector_test.vcproj b/proj/vc7ide/explicit_inst_small_vector_test.vcproj new file mode 100644 index 0000000..51e9cbf --- /dev/null +++ b/proj/vc7ide/explicit_inst_small_vector_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/explicit_inst_small_vector_test.cpp b/test/explicit_inst_small_vector_test.cpp new file mode 100644 index 0000000..65d9815 --- /dev/null +++ b/test/explicit_inst_small_vector_test.cpp @@ -0,0 +1,26 @@ +////////////////////////////////////////////////////////////////////////////// +// +// (C) Copyright Ion Gaztanaga 2015-2015. Distributed under the Boost +// Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// +// See http://www.boost.org/libs/container for documentation. +// +////////////////////////////////////////////////////////////////////////////// + +#include + +struct empty +{ + friend bool operator == (const empty &, const empty &){ return true; } + friend bool operator < (const empty &, const empty &){ return true; } +}; + +template class ::boost::container::small_vector; + +int main() +{ + ::boost::container::small_vector dummy; + (void)dummy; + return 0; +}