Skip to content

Commit 4cae9ca

Browse files
committed
Fix noexcept.
1 parent 1a7fa4a commit 4cae9ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/tao/json/binding/element.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ namespace tao::json::binding
8484

8585
using internal_t = std::decay_t< decltype( P( std::declval< const C >() ) ) >;
8686

87-
[[nodiscard]] static decltype( auto ) read( const C& v )
87+
[[nodiscard]] static decltype( auto ) read( const C& v ) noexcept( N )
8888
{
8989
return P( v );
9090
}
@@ -107,13 +107,13 @@ namespace tao::json::binding
107107

108108
using internal_t = value_t;
109109

110-
[[nodiscard]] static decltype( auto ) read( const A& v ) noexcept
110+
[[nodiscard]] static decltype( auto ) read( const A& v ) noexcept( CN )
111111
{
112112
return CP( v );
113113
}
114114

115115
template< typename W >
116-
static void write( A& v, W&& w )
116+
static void write( A& v, W&& w ) noexcept( N )
117117
{
118118
P( v ) = std::forward< W >( w );
119119
}
@@ -145,13 +145,13 @@ namespace tao::json::binding
145145

146146
using internal_t = value_t;
147147

148-
[[nodiscard]] static decltype( auto ) read( const A& v ) noexcept
148+
[[nodiscard]] static decltype( auto ) read( const A& v ) noexcept( CN )
149149
{
150150
return CP( v );
151151
}
152152

153153
template< typename W >
154-
static void write( A& v, W&& w )
154+
static void write( A& v, W&& w ) noexcept( N )
155155
{
156156
P( v, std::forward< W >( w ) );
157157
}

0 commit comments

Comments
 (0)