brintos

brintos / llvm-project-archived public Read only

0
0
Text · 767 B · d7035f8 Raw
21 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++11, c++14, c++17, c++2010 11// <string_view>12 13// basic_string_view(nullptr_t) = delete; // C++2314 15#include <string_view>16#include <type_traits>17 18static_assert(!std::is_convertible_v<decltype(nullptr), std::string_view>);19static_assert(!std::is_constructible_v<std::string_view, decltype(nullptr)>);20static_assert(!std::is_assignable_v<std::string_view, decltype(nullptr)>);21