mirror of
https://github.com/boostorg/optional.git
synced 2025-11-03 01:02:15 +01:00
ASSIGN -> CONVERT
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "boost/core/lightweight_test.hpp"
|
||||
#include "boost/optional/detail/optional_config.hpp"
|
||||
|
||||
#ifndef BOOST_OPTIONAL_CONFIG_NO_PROPER_ASSIGN_FROM_CONST_INT
|
||||
#ifndef BOOST_OPTIONAL_CONFIG_NO_PROPER_CONVERT_FROM_CONST_INT
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -26,9 +26,9 @@ const int global_i = 0;
|
||||
|
||||
struct Binder
|
||||
{
|
||||
Binder(const int& i)
|
||||
{
|
||||
BOOST_TEST(&i == &global_i);
|
||||
Binder(const int& i)
|
||||
{
|
||||
BOOST_TEST(&i == &global_i);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user