Skip to content

Commit

Permalink
Improve error message for missing traits specialization
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed May 19, 2016
1 parent 5df4679 commit 63d3cdc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/tao/json/value.hh
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ namespace tao
{ }

template< typename T >
basic_value( T && v ) noexcept( noexcept( std::declval< basic_value & >().unsafe_assign( std::forward< T >( v ) ) ) )
basic_value( T && v ) noexcept( noexcept( Traits< typename std::decay< T >::type >::assign( std::declval< basic_value & >(), std::forward< T >( v ) ) ) )
{
unsafe_assign( std::forward< T >( v ) );
using D = typename std::decay< T >::type;
Traits< D >::assign( *this, std::forward< T >( v ) );
}

basic_value( std::initializer_list< pair< basic_value > > && l )
Expand Down

0 comments on commit 63d3cdc

Please sign in to comment.