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 fclose_deleter_compile_fail_adl.cpp
9 * \author Andrey Semashev
10 * \date 02.02.2024
11 *
12 * This file tests that \c boost::null_deleter doesn't bring namespace
13 * \c boost into ADL.
14 */
15
16#include <boost/core/null_deleter.hpp>
17
18namespace boost {
19
20void check_adl(null_deleter const&)
21{
22}
23
24} // namespace boost
25
26int main()
27{
28 // Must not find boost::check_adl
29 check_adl(boost::null_deleter());
30}
31

source code of boost/libs/core/test/null_deleter_compile_fail_adl.cpp