mirror of
https://github.com/boostorg/filesystem.git
synced 2025-05-12 05:31:49 +00:00
It is always an error and UB. Explicitly deleting the functions produces better compiler errors. Closes https://github.com/boostorg/filesystem/issues/278.
20 lines
432 B
C++
20 lines
432 B
C++
// Copyright 2023 Andrey Semashev.
|
|
//
|
|
// 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
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
#include <boost/config.hpp>
|
|
|
|
#if defined(BOOST_NO_CXX11_NULLPTR)
|
|
#error "This test requires support for C++11 nullptr"
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
boost::filesystem::path p(nullptr);
|
|
p = nullptr;
|
|
}
|