From deda20af892f0fa9404d8942630a0b34403c51af Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 1 Nov 2022 21:46:31 -0400 Subject: [PATCH] spelling: overloads Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- doc/90_dependencies.qbk | 2 +- .../emplace_operations_in_older_compilers.html | 2 +- include/boost/optional/detail/old_optional_implementation.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/90_dependencies.qbk b/doc/90_dependencies.qbk index 8e3e8de..d383905 100644 --- a/doc/90_dependencies.qbk +++ b/doc/90_dependencies.qbk @@ -46,7 +46,7 @@ On compilers that do not support variadic templates, each of these functions is template void emplace(Arg&& arg); void emplace(); -On compilers that do not support rvalue references, each of these functions is substituted with three overloadss: taking `const` and non-`const` lvalue reference, and third forwarding zero arguments. This forms the following set: +On compilers that do not support rvalue references, each of these functions is substituted with three overloads: taking `const` and non-`const` lvalue reference, and third forwarding zero arguments. This forms the following set: template optional(in_place_init_t, const Arg& arg); template optional(in_place_init_t, Arg& arg); diff --git a/doc/html/boost_optional/dependencies_and_portability/emplace_operations_in_older_compilers.html b/doc/html/boost_optional/dependencies_and_portability/emplace_operations_in_older_compilers.html index 7d6d407..e4c08bc 100644 --- a/doc/html/boost_optional/dependencies_and_portability/emplace_operations_in_older_compilers.html +++ b/doc/html/boost_optional/dependencies_and_portability/emplace_operations_in_older_compilers.html @@ -52,7 +52,7 @@

On compilers that do not support rvalue references, each of these functions - is substituted with three overloadss: taking const + is substituted with three overloads: taking const and non-const lvalue reference, and third forwarding zero arguments. This forms the following set:

diff --git a/include/boost/optional/detail/old_optional_implementation.hpp b/include/boost/optional/detail/old_optional_implementation.hpp index 2b7da28..6d707fc 100644 --- a/include/boost/optional/detail/old_optional_implementation.hpp +++ b/include/boost/optional/detail/old_optional_implementation.hpp @@ -629,7 +629,7 @@ class optional_base : public optional_tag // If T is of reference type, trying to get a pointer to the held value must result in a compile-time error. // Decent compilers should disallow conversions from reference_content* to T*, but just in case, - // the following olverloads are used to filter out the case and guarantee an error in case of T being a reference. + // the following overloads are used to filter out the case and guarantee an error in case of T being a reference. pointer_const_type cast_ptr( internal_type const* p, is_not_reference_tag ) const { return p ; } pointer_type cast_ptr( internal_type * p, is_not_reference_tag ) { return p ; } pointer_const_type cast_ptr( internal_type const* p, is_reference_tag ) const { return &p->get() ; }