From 493f19f2a967ec5abaa8afce008f989bfe4dce56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 4 Jan 2015 02:24:24 +0100 Subject: [PATCH] New tests, to measure if container headers include all what's needed to use them. --- proj/vc7ide/container.sln | 88 ++++++++++++ proj/vc7ide/explicit_inst_deque_test.vcproj | 136 ++++++++++++++++++ .../vc7ide/explicit_inst_flat_map_test.vcproj | 136 ++++++++++++++++++ .../vc7ide/explicit_inst_flat_set_test.vcproj | 136 ++++++++++++++++++ proj/vc7ide/explicit_inst_list_test.vcproj | 136 ++++++++++++++++++ proj/vc7ide/explicit_inst_map_test.vcproj | 136 ++++++++++++++++++ proj/vc7ide/explicit_inst_set_test.vcproj | 136 ++++++++++++++++++ proj/vc7ide/explicit_inst_slist_test.vcproj | 136 ++++++++++++++++++ .../explicit_inst_stable_vector_test.vcproj | 136 ++++++++++++++++++ .../explicit_inst_static_vector_test.vcproj | 136 ++++++++++++++++++ proj/vc7ide/explicit_inst_string_test.vcproj | 136 ++++++++++++++++++ proj/vc7ide/explicit_inst_vector_test.vcproj | 136 ++++++++++++++++++ test/explicit_inst_deque_test.cpp | 26 ++++ test/explicit_inst_flat_map_test.cpp | 28 ++++ test/explicit_inst_flat_set_test.cpp | 28 ++++ test/explicit_inst_list_test.cpp | 26 ++++ test/explicit_inst_map_test.cpp | 28 ++++ test/explicit_inst_set_test.cpp | 28 ++++ test/explicit_inst_slist_test.cpp | 26 ++++ test/explicit_inst_stable_vector_test.cpp | 26 ++++ test/explicit_inst_static_vector_test.cpp | 26 ++++ test/explicit_inst_string_test.cpp | 20 +++ test/explicit_inst_vector_test.cpp | 26 ++++ 23 files changed, 1872 insertions(+) create mode 100644 proj/vc7ide/explicit_inst_deque_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_flat_map_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_flat_set_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_list_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_map_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_set_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_slist_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_stable_vector_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_static_vector_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_string_test.vcproj create mode 100644 proj/vc7ide/explicit_inst_vector_test.vcproj create mode 100644 test/explicit_inst_deque_test.cpp create mode 100644 test/explicit_inst_flat_map_test.cpp create mode 100644 test/explicit_inst_flat_set_test.cpp create mode 100644 test/explicit_inst_list_test.cpp create mode 100644 test/explicit_inst_map_test.cpp create mode 100644 test/explicit_inst_set_test.cpp create mode 100644 test/explicit_inst_slist_test.cpp create mode 100644 test/explicit_inst_stable_vector_test.cpp create mode 100644 test/explicit_inst_static_vector_test.cpp create mode 100644 test/explicit_inst_string_test.cpp create mode 100644 test/explicit_inst_vector_test.cpp diff --git a/proj/vc7ide/container.sln b/proj/vc7ide/container.sln index a4489cb..e46f3a0 100644 --- a/proj/vc7ide/container.sln +++ b/proj/vc7ide/container.sln @@ -175,6 +175,50 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "null_iterators_test", "null ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_vector_test", "explicit_inst_vector_test.vcproj", "{CA85EE11-096A-4F8A-4FA2-92DA72020000}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_list_test", "explicit_inst_list_test.vcproj", "{CE1A85E0-096A-42FC-F83A-97A242002DA5}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_deque_test", "explicit_inst_deque_test.vcproj", "{CEE1A855-096A-3AC8-2F5C-9DA2420523A5}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_slist_test", "explicit_inst_slist_test.vcproj", "{CE1A8F65-AC48-096A-2F5C-7A2420D323A1}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_stable_vector_test", "explicit_inst_stable_vector_test.vcproj", "{AC285EA1-F8A3-306C-4FA2-A02029D5E720}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_static_vector_test", "explicit_inst_static_vector_test.vcproj", "{E287ACA1-FA42-3F7A-06C2-AC72012209F5}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_string_test", "explicit_inst_string_test.vcproj", "{6A85ECE0-A596-24EA-F83A-9231D72A0217}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_set_test", "explicit_inst_set_test.vcproj", "{C11D9E85-16A9-4A2E-C4F6-92F7E138200D}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_map_test", "explicit_inst_map_test.vcproj", "{CD9E8655-94A3-6C2E-C4F6-97E1382073FC}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_map_test", "explicit_inst_flat_map_test.vcproj", "{9845ECE5-C27E-4F6C-94A3-9C2E1E7231FC}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "explicit_inst_flat_set_test", "explicit_inst_flat_set_test.vcproj", "{C811D9F8-A27E-1A91-FC44-92F14F73820B}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug @@ -357,6 +401,50 @@ Global {C90520E3-B8A9-EB54-76E2-25DFA3C7762A}.Debug.Build.0 = Debug|Win32 {C90520E3-B8A9-EB54-76E2-25DFA3C7762A}.Release.ActiveCfg = Release|Win32 {C90520E3-B8A9-EB54-76E2-25DFA3C7762A}.Release.Build.0 = Release|Win32 + {CA85EE11-096A-4F8A-4FA2-92DA72020000}.Debug.ActiveCfg = Debug|Win32 + {CA85EE11-096A-4F8A-4FA2-92DA72020000}.Debug.Build.0 = Debug|Win32 + {CA85EE11-096A-4F8A-4FA2-92DA72020000}.Release.ActiveCfg = Release|Win32 + {CA85EE11-096A-4F8A-4FA2-92DA72020000}.Release.Build.0 = Release|Win32 + {CE1A85E0-096A-42FC-F83A-97A242002DA5}.Debug.ActiveCfg = Debug|Win32 + {CE1A85E0-096A-42FC-F83A-97A242002DA5}.Debug.Build.0 = Debug|Win32 + {CE1A85E0-096A-42FC-F83A-97A242002DA5}.Release.ActiveCfg = Release|Win32 + {CE1A85E0-096A-42FC-F83A-97A242002DA5}.Release.Build.0 = Release|Win32 + {CEE1A855-096A-3AC8-2F5C-9DA2420523A5}.Debug.ActiveCfg = Debug|Win32 + {CEE1A855-096A-3AC8-2F5C-9DA2420523A5}.Debug.Build.0 = Debug|Win32 + {CEE1A855-096A-3AC8-2F5C-9DA2420523A5}.Release.ActiveCfg = Release|Win32 + {CEE1A855-096A-3AC8-2F5C-9DA2420523A5}.Release.Build.0 = Release|Win32 + {CE1A8F65-AC48-096A-2F5C-7A2420D323A1}.Debug.ActiveCfg = Debug|Win32 + {CE1A8F65-AC48-096A-2F5C-7A2420D323A1}.Debug.Build.0 = Debug|Win32 + {CE1A8F65-AC48-096A-2F5C-7A2420D323A1}.Release.ActiveCfg = Release|Win32 + {CE1A8F65-AC48-096A-2F5C-7A2420D323A1}.Release.Build.0 = Release|Win32 + {AC285EA1-F8A3-306C-4FA2-A02029D5E720}.Debug.ActiveCfg = Debug|Win32 + {AC285EA1-F8A3-306C-4FA2-A02029D5E720}.Debug.Build.0 = Debug|Win32 + {AC285EA1-F8A3-306C-4FA2-A02029D5E720}.Release.ActiveCfg = Release|Win32 + {AC285EA1-F8A3-306C-4FA2-A02029D5E720}.Release.Build.0 = Release|Win32 + {E287ACA1-FA42-3F7A-06C2-AC72012209F5}.Debug.ActiveCfg = Debug|Win32 + {E287ACA1-FA42-3F7A-06C2-AC72012209F5}.Debug.Build.0 = Debug|Win32 + {E287ACA1-FA42-3F7A-06C2-AC72012209F5}.Release.ActiveCfg = Release|Win32 + {E287ACA1-FA42-3F7A-06C2-AC72012209F5}.Release.Build.0 = Release|Win32 + {6A85ECE0-A596-24EA-F83A-9231D72A0217}.Debug.ActiveCfg = Debug|Win32 + {6A85ECE0-A596-24EA-F83A-9231D72A0217}.Debug.Build.0 = Debug|Win32 + {6A85ECE0-A596-24EA-F83A-9231D72A0217}.Release.ActiveCfg = Release|Win32 + {6A85ECE0-A596-24EA-F83A-9231D72A0217}.Release.Build.0 = Release|Win32 + {C11D9E85-16A9-4A2E-C4F6-92F7E138200D}.Debug.ActiveCfg = Debug|Win32 + {C11D9E85-16A9-4A2E-C4F6-92F7E138200D}.Debug.Build.0 = Debug|Win32 + {C11D9E85-16A9-4A2E-C4F6-92F7E138200D}.Release.ActiveCfg = Release|Win32 + {C11D9E85-16A9-4A2E-C4F6-92F7E138200D}.Release.Build.0 = Release|Win32 + {CD9E8655-94A3-6C2E-C4F6-97E1382073FC}.Debug.ActiveCfg = Debug|Win32 + {CD9E8655-94A3-6C2E-C4F6-97E1382073FC}.Debug.Build.0 = Debug|Win32 + {CD9E8655-94A3-6C2E-C4F6-97E1382073FC}.Release.ActiveCfg = Release|Win32 + {CD9E8655-94A3-6C2E-C4F6-97E1382073FC}.Release.Build.0 = Release|Win32 + {9845ECE5-C27E-4F6C-94A3-9C2E1E7231FC}.Debug.ActiveCfg = Debug|Win32 + {9845ECE5-C27E-4F6C-94A3-9C2E1E7231FC}.Debug.Build.0 = Debug|Win32 + {9845ECE5-C27E-4F6C-94A3-9C2E1E7231FC}.Release.ActiveCfg = Release|Win32 + {9845ECE5-C27E-4F6C-94A3-9C2E1E7231FC}.Release.Build.0 = Release|Win32 + {C811D9F8-A27E-1A91-FC44-92F14F73820B}.Debug.ActiveCfg = Debug|Win32 + {C811D9F8-A27E-1A91-FC44-92F14F73820B}.Debug.Build.0 = Debug|Win32 + {C811D9F8-A27E-1A91-FC44-92F14F73820B}.Release.ActiveCfg = Release|Win32 + {C811D9F8-A27E-1A91-FC44-92F14F73820B}.Release.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection diff --git a/proj/vc7ide/explicit_inst_deque_test.vcproj b/proj/vc7ide/explicit_inst_deque_test.vcproj new file mode 100644 index 0000000..e1e44d9 --- /dev/null +++ b/proj/vc7ide/explicit_inst_deque_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_flat_map_test.vcproj b/proj/vc7ide/explicit_inst_flat_map_test.vcproj new file mode 100644 index 0000000..a390cef --- /dev/null +++ b/proj/vc7ide/explicit_inst_flat_map_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_flat_set_test.vcproj b/proj/vc7ide/explicit_inst_flat_set_test.vcproj new file mode 100644 index 0000000..2af4b87 --- /dev/null +++ b/proj/vc7ide/explicit_inst_flat_set_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_list_test.vcproj b/proj/vc7ide/explicit_inst_list_test.vcproj new file mode 100644 index 0000000..4d24787 --- /dev/null +++ b/proj/vc7ide/explicit_inst_list_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_map_test.vcproj b/proj/vc7ide/explicit_inst_map_test.vcproj new file mode 100644 index 0000000..8da1429 --- /dev/null +++ b/proj/vc7ide/explicit_inst_map_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_set_test.vcproj b/proj/vc7ide/explicit_inst_set_test.vcproj new file mode 100644 index 0000000..e61403a --- /dev/null +++ b/proj/vc7ide/explicit_inst_set_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_slist_test.vcproj b/proj/vc7ide/explicit_inst_slist_test.vcproj new file mode 100644 index 0000000..33f1d3c --- /dev/null +++ b/proj/vc7ide/explicit_inst_slist_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_stable_vector_test.vcproj b/proj/vc7ide/explicit_inst_stable_vector_test.vcproj new file mode 100644 index 0000000..2227f5a --- /dev/null +++ b/proj/vc7ide/explicit_inst_stable_vector_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_static_vector_test.vcproj b/proj/vc7ide/explicit_inst_static_vector_test.vcproj new file mode 100644 index 0000000..6b57603 --- /dev/null +++ b/proj/vc7ide/explicit_inst_static_vector_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_string_test.vcproj b/proj/vc7ide/explicit_inst_string_test.vcproj new file mode 100644 index 0000000..46031af --- /dev/null +++ b/proj/vc7ide/explicit_inst_string_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proj/vc7ide/explicit_inst_vector_test.vcproj b/proj/vc7ide/explicit_inst_vector_test.vcproj new file mode 100644 index 0000000..236b032 --- /dev/null +++ b/proj/vc7ide/explicit_inst_vector_test.vcproj @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/explicit_inst_deque_test.cpp b/test/explicit_inst_deque_test.cpp new file mode 100644 index 0000000..77163db --- /dev/null +++ b/test/explicit_inst_deque_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::deque; + +int main() +{ + ::boost::container::deque dummy; + (void)dummy; + return 0; +} diff --git a/test/explicit_inst_flat_map_test.cpp b/test/explicit_inst_flat_map_test.cpp new file mode 100644 index 0000000..77925d8 --- /dev/null +++ b/test/explicit_inst_flat_map_test.cpp @@ -0,0 +1,28 @@ +////////////////////////////////////////////////////////////////////////////// +// +// (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::flat_map; +template class ::boost::container::flat_multimap; + +int main() +{ + ::boost::container::flat_map dummy; + ::boost::container::flat_multimap dummy2; + (void)dummy; (void)dummy2; + return 0; +} diff --git a/test/explicit_inst_flat_set_test.cpp b/test/explicit_inst_flat_set_test.cpp new file mode 100644 index 0000000..a9c482f --- /dev/null +++ b/test/explicit_inst_flat_set_test.cpp @@ -0,0 +1,28 @@ +////////////////////////////////////////////////////////////////////////////// +// +// (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::flat_set; +template class ::boost::container::flat_multiset; + +int main() +{ + ::boost::container::flat_set dummy; + ::boost::container::flat_multiset dummy2; + (void)dummy; (void)dummy2; + return 0; +} diff --git a/test/explicit_inst_list_test.cpp b/test/explicit_inst_list_test.cpp new file mode 100644 index 0000000..b038594 --- /dev/null +++ b/test/explicit_inst_list_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::list; + +int main() +{ + ::boost::container::list dummy; + (void)dummy; + return 0; +} diff --git a/test/explicit_inst_map_test.cpp b/test/explicit_inst_map_test.cpp new file mode 100644 index 0000000..4a19429 --- /dev/null +++ b/test/explicit_inst_map_test.cpp @@ -0,0 +1,28 @@ +////////////////////////////////////////////////////////////////////////////// +// +// (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::map; +template class ::boost::container::multimap; + +int main() +{ + ::boost::container::map dummy; + ::boost::container::multimap dummy2; + (void)dummy; (void)dummy2; + return 0; +} diff --git a/test/explicit_inst_set_test.cpp b/test/explicit_inst_set_test.cpp new file mode 100644 index 0000000..7116c96 --- /dev/null +++ b/test/explicit_inst_set_test.cpp @@ -0,0 +1,28 @@ +////////////////////////////////////////////////////////////////////////////// +// +// (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::set; +template class ::boost::container::multiset; + +int main() +{ + ::boost::container::set dummy; + ::boost::container::multiset dummy2; + (void)dummy; (void)dummy2; + return 0; +} diff --git a/test/explicit_inst_slist_test.cpp b/test/explicit_inst_slist_test.cpp new file mode 100644 index 0000000..ed4b5ae --- /dev/null +++ b/test/explicit_inst_slist_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::slist; + +int main() +{ + ::boost::container::slist dummy; + (void)dummy; + return 0; +} diff --git a/test/explicit_inst_stable_vector_test.cpp b/test/explicit_inst_stable_vector_test.cpp new file mode 100644 index 0000000..cdd3bdd --- /dev/null +++ b/test/explicit_inst_stable_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::stable_vector; + +int main() +{ + ::boost::container::stable_vector dummy; + (void)dummy; + return 0; +} diff --git a/test/explicit_inst_static_vector_test.cpp b/test/explicit_inst_static_vector_test.cpp new file mode 100644 index 0000000..6681f7c --- /dev/null +++ b/test/explicit_inst_static_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::static_vector; + +int main() +{ + ::boost::container::static_vector dummy; + (void)dummy; + return 0; +} diff --git a/test/explicit_inst_string_test.cpp b/test/explicit_inst_string_test.cpp new file mode 100644 index 0000000..f911bb0 --- /dev/null +++ b/test/explicit_inst_string_test.cpp @@ -0,0 +1,20 @@ +////////////////////////////////////////////////////////////////////////////// +// +// (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 + +template class ::boost::container::basic_string; + +int main() +{ + ::boost::container::basic_string dummy; + (void)dummy; + return 0; +} diff --git a/test/explicit_inst_vector_test.cpp b/test/explicit_inst_vector_test.cpp new file mode 100644 index 0000000..b03427c --- /dev/null +++ b/test/explicit_inst_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::vector; + +int main() +{ + ::boost::container::vector dummy; + (void)dummy; + return 0; +}