mirror of
https://github.com/boostorg/system.git
synced 2025-07-29 20:17:13 +02:00
Unbreak the loc == 0 case, even though the specification disallows it
This commit is contained in:
@ -105,7 +105,7 @@ public:
|
||||
}
|
||||
|
||||
error_code( int val, const error_category & cat, source_location const * loc ) BOOST_NOEXCEPT:
|
||||
d1_(), lc_flags_( reinterpret_cast<boost::uintptr_t>( loc ) | +detail::failed_impl( val, cat ) )
|
||||
d1_(), lc_flags_( ( loc? reinterpret_cast<boost::uintptr_t>( loc ): 2 ) | +detail::failed_impl( val, cat ) )
|
||||
{
|
||||
d1_.val_ = val;
|
||||
d1_.cat_ = &cat;
|
||||
|
Reference in New Issue
Block a user