// Copyright 2026 Braden Ganetsky // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #if !defined(BOOST_UNORDERED_FOA_TESTS) #error "This test is only for the FOA-style conatiners" #endif #include #include #include #include #include // Don't include the CFOA headers here! using flat_map = boost::unordered::unordered_flat_map; using flat_set = boost::unordered::unordered_flat_set; using node_map = boost::unordered::unordered_node_map; using node_set = boost::unordered::unordered_node_set; struct constrained_template_converter { struct dummy { }; template ::value, int>::type = 0> operator T() const { return T{}; } }; // Check whether the corresponding CFOA container gets instantiated. // The CFOA headers aren't included, so this would fail to compile if the CFOA // container was instantiated. BOOST_STATIC_ASSERT( (!std::is_constructible::value)); BOOST_STATIC_ASSERT( (!std::is_constructible::value)); BOOST_STATIC_ASSERT( (!std::is_constructible::value)); BOOST_STATIC_ASSERT( (!std::is_constructible::value)); int main() { return 0; }