mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 14:40:48 +08:00

``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
32 lines
564 B
C++
32 lines
564 B
C++
// -*-c++-*-
|
|
// vim: set ft=cpp:
|
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
|
|
# define CMake_HAVE_CXX_IN_PLACE
|
|
#endif
|
|
|
|
#include <utility> // IWYU pragma: export
|
|
|
|
namespace cm {
|
|
|
|
#if defined(CMake_HAVE_CXX_IN_PLACE)
|
|
|
|
using std::in_place_t;
|
|
using std::in_place;
|
|
|
|
#else
|
|
|
|
struct in_place_t
|
|
{
|
|
explicit in_place_t() = default;
|
|
};
|
|
|
|
constexpr in_place_t in_place{};
|
|
|
|
#endif
|
|
}
|