mirror of
https://github.com/boostorg/optional.git
synced 2025-07-29 12:07:21 +02:00
spelling: references
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
committed by
Andrzej Krzemienski
parent
db472e7ed6
commit
cdc2bd8482
@ -66,7 +66,7 @@ void prevent_assignment_from_false_const_integral()
|
|||||||
{
|
{
|
||||||
#ifndef BOOST_OPTIONAL_CONFIG_ALLOW_BINDING_TO_RVALUES
|
#ifndef BOOST_OPTIONAL_CONFIG_ALLOW_BINDING_TO_RVALUES
|
||||||
#ifdef BOOST_OPTIONAL_CONFIG_NO_PROPER_ASSIGN_FROM_CONST_INT
|
#ifdef BOOST_OPTIONAL_CONFIG_NO_PROPER_ASSIGN_FROM_CONST_INT
|
||||||
// MSVC compiler without rvalue refernces: we need to disable the assignment from
|
// MSVC compiler without rvalue references: we need to disable the assignment from
|
||||||
// const integral lvalue reference, as it may be an invalid temporary
|
// const integral lvalue reference, as it may be an invalid temporary
|
||||||
BOOST_STATIC_ASSERT_MSG(!is_const_integral<From>::value,
|
BOOST_STATIC_ASSERT_MSG(!is_const_integral<From>::value,
|
||||||
"binding const lvalue references to integral types is disabled in this compiler");
|
"binding const lvalue references to integral types is disabled in this compiler");
|
||||||
|
Reference in New Issue
Block a user