xref: /freebsd-src/contrib/llvm-project/libcxx/src/expected.cpp (revision bc9e19dce0abee80750e6fa04aaf979873bfe0d2)
10fca6ea1SDimitry Andric //===----------------------------------------------------------------------===//
20fca6ea1SDimitry Andric //
30fca6ea1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40fca6ea1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50fca6ea1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60fca6ea1SDimitry Andric //
70fca6ea1SDimitry Andric //===----------------------------------------------------------------------===//
80fca6ea1SDimitry Andric 
90fca6ea1SDimitry Andric #include <expected>
100fca6ea1SDimitry Andric 
110fca6ea1SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD
12*bc9e19dcSDimitry Andric #if _LIBCPP_STD_VER >= 23
130fca6ea1SDimitry Andric const char* bad_expected_access<void>::what() const noexcept { return "bad access to std::expected"; }
14*bc9e19dcSDimitry Andric #endif
150fca6ea1SDimitry Andric _LIBCPP_END_NAMESPACE_STD
16