2
0
mirror of https://github.com/boostorg/pfr.git synced 2026-01-19 16:32:13 +00:00

Fix typos (#210)

Thanks to https://github.com/TryKuhn for highlighting the issues
This commit is contained in:
Antony Polukhin
2025-06-17 10:39:53 +03:00
committed by GitHub
parent 9bc3cb2af7
commit 820f56c316
6 changed files with 14 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ if (BOOST_USE_MODULES)
target_compile_definitions(boost_pfr PRIVATE BOOST_PFR_USE_STD_MODULE)
message(STATUS "Using `import std;`")
else()
message(STATUS "`import std;` is not awailable")
message(STATUS "`import std;` is not available")
endif()
target_include_directories(boost_pfr PUBLIC include)
else()

View File

@@ -563,7 +563,7 @@ make the `Boost::pfr` CMake target provide it. After that an explicit usage of C
[pfr_module_example]
The `Boost::pfr` CMake target gives an ability to mix includes and imports of the PFR library in different translation units. Moreover,
if `BOOST_USE_MODULES` macro is defined then all the `boost/pfr/...` includes implicilty do `import boost.pfr;` to give all the
if `BOOST_USE_MODULES` macro is defined then all the `boost/pfr/...` includes implicitly do `import boost.pfr;` to give all the
benifits of modules without changing the existing code.
[note For better compile times make sure that `import std;` is available when building the `boost.pfr` module (in CMake logs there should be

View File

@@ -19,7 +19,7 @@ namespace boost { namespace pfr { namespace detail {
struct can_not_apply{};
template <template <class, class> class Detector, class Tleft, class Tright>
struct not_appliable {
struct not_applicable {
static constexpr bool value = std::is_same<
Detector<Tleft, Tright>,
can_not_apply

View File

@@ -40,25 +40,25 @@ namespace detail {
///////////////////// Helper typedefs
template <class Stream, class Type>
using enable_not_ostreamable_t = std::enable_if_t<
not_appliable<ostreamable_detector, Stream&, const std::remove_reference_t<Type>&>::value,
not_applicable<ostreamable_detector, Stream&, const std::remove_reference_t<Type>&>::value,
Stream&
>;
template <class Stream, class Type>
using enable_not_istreamable_t = std::enable_if_t<
not_appliable<istreamable_detector, Stream&, Type&>::value,
not_applicable<istreamable_detector, Stream&, Type&>::value,
Stream&
>;
template <class Stream, class Type>
using enable_ostreamable_t = std::enable_if_t<
!not_appliable<ostreamable_detector, Stream&, const std::remove_reference_t<Type>&>::value,
!not_applicable<ostreamable_detector, Stream&, const std::remove_reference_t<Type>&>::value,
Stream&
>;
template <class Stream, class Type>
using enable_istreamable_t = std::enable_if_t<
!not_appliable<istreamable_detector, Stream&, Type&>::value,
!not_applicable<istreamable_detector, Stream&, Type&>::value,
Stream&
>;

View File

@@ -42,13 +42,13 @@ namespace detail {
///////////////////// Helper typedefs that are used by all the ops
template <template <class, class> class Detector, class T, class U>
using enable_not_comp_base_t = std::enable_if_t<
not_appliable<Detector, T const&, U const&>::value,
not_applicable<Detector, T const&, U const&>::value,
bool
>;
template <template <class, class> class Detector, class T, class U>
using enable_comp_base_t = std::enable_if_t<
!not_appliable<Detector, T const&, U const&>::value,
!not_applicable<Detector, T const&, U const&>::value,
bool
>;
///////////////////// std::enable_if_t like functions that enable only if types do not support operation
@@ -61,7 +61,7 @@ namespace detail {
template <class T, class U> using enable_not_ge_comp_t = enable_not_comp_base_t<comp_ge_detector, T, U>;
template <class T> using enable_not_hashable_t = std::enable_if_t<
not_appliable<hash_detector, const T&, const T&>::value,
not_applicable<hash_detector, const T&, const T&>::value,
std::size_t
>;
///////////////////// std::enable_if_t like functions that enable only if types do support operation
@@ -74,7 +74,7 @@ namespace detail {
template <class T, class U> using enable_ge_comp_t = enable_comp_base_t<comp_ge_detector, T, U>;
template <class T> using enable_hashable_t = std::enable_if_t<
!not_appliable<hash_detector, const T&, const T&>::value,
!not_applicable<hash_detector, const T&, const T&>::value,
std::size_t
>;
} // namespace detail

View File

@@ -41,16 +41,16 @@ environment:
# ADDRMD: 32,64
# CXXSTD: 17,latest
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
TOOLSET: msvc # clang-win has problems with structured bindings - it can not correclty use std::tuple_size
TOOLSET: msvc # clang-win has problems with structured bindings - it can not correctly use std::tuple_size
ADDRMD: 32,64
CXXSTD: 17,latest
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
TOOLSET: msvc # clang-win has problems with structured bindings - it can not correclty use std::tuple_size
TOOLSET: msvc # clang-win has problems with structured bindings - it can not correctly use std::tuple_size
ADDRMD: 32,64
CXXSTD: 17,latest
CXXFLAGS: /permissive-
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
TOOLSET: msvc # clang-win has problems with structured bindings - it can not correclty use std::tuple_size
TOOLSET: msvc # clang-win has problems with structured bindings - it can not correctly use std::tuple_size
ADDRMD: 32,64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
ADDPATH: C:\cygwin\bin;