| 1 | /* |
| 2 | * Copyright Andrey Semashev 2024. |
| 3 | * Distributed under the Boost Software License, Version 1.0. |
| 4 | * (See accompanying file LICENSE_1_0.txt or copy at |
| 5 | * http://www.boost.org/LICENSE_1_0.txt) |
| 6 | */ |
| 7 | /*! |
| 8 | * \file checked_array_deleter_compile_fail_adl.cpp |
| 9 | * \author Andrey Semashev |
| 10 | * \date 07.02.2024 |
| 11 | * |
| 12 | * This file tests that \c boost::checked_array_deleter doesn't bring namespace |
| 13 | * \c boost into ADL. |
| 14 | */ |
| 15 | |
| 16 | #include <boost/core/checked_delete.hpp> |
| 17 | |
| 18 | namespace boost { |
| 19 | |
| 20 | void check_adl(checked_array_deleter< int > const&) |
| 21 | { |
| 22 | } |
| 23 | |
| 24 | } // namespace boost |
| 25 | |
| 26 | int main() |
| 27 | { |
| 28 | // Must not find boost::check_adl |
| 29 | check_adl(boost::checked_array_deleter< int >()); |
| 30 | } |
| 31 | |