forked from boostorg/optional
Fixed the converting assignment bug in optional<>
Fixed the usage of 'None' in converter.h, which is declared as a macro in X11/X.h [SVN r32531]
This commit is contained in:
@ -115,12 +115,8 @@ void test_basics( T const* )
|
|||||||
// Assignment
|
// Assignment
|
||||||
// T::operator= ( T const& x ) is used to copy new value.
|
// T::operator= ( T const& x ) is used to copy new value.
|
||||||
set_pending_assign( ARG(T) ) ;
|
set_pending_assign( ARG(T) ) ;
|
||||||
set_pending_copy ( ARG(T) ) ;
|
|
||||||
set_pending_dtor ( ARG(T) ) ;
|
|
||||||
oa = ob ;
|
oa = ob ;
|
||||||
check_is_not_pending_assign( ARG(T) ) ;
|
check_is_not_pending_assign( ARG(T) ) ;
|
||||||
check_is_pending_copy ( ARG(T) ) ;
|
|
||||||
check_is_pending_dtor ( ARG(T) ) ;
|
|
||||||
check_initialized(oa);
|
check_initialized(oa);
|
||||||
check_value(oa,b,z);
|
check_value(oa,b,z);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user