Skip to content

Commit 070926f

Browse files
committed
removed inline on autogenerated methods as gcc has issues with constexpr static
local variables in inline methods
1 parent a663dab commit 070926f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/json_to_cpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ namespace daw::json_to_cpp {
355355
}
356356
if( !definition ) {
357357
using daw::json::json_value_t;
358-
config.cpp_file( ) << "inline auto describe_json_class( "
358+
config.cpp_file( ) << "auto describe_json_class( "
359359
<< cur_obj.object_name
360360
<< " ) {\n\tusing namespace daw::json;\n";
361361
for( auto const &child : *cur_obj.children ) {
@@ -402,7 +402,7 @@ namespace daw::json_to_cpp {
402402
}
403403
config.cpp_file( ) << ">{};\n}\n\n";
404404

405-
config.cpp_file( ) << " inline auto to_json_data( "
405+
config.cpp_file( ) << "auto to_json_data( "
406406
<< cur_obj.object_name << " const & value ) {\n";
407407
config.cpp_file( ) << "\treturn std::forward_as_tuple( ";
408408
is_first = true;

0 commit comments

Comments
 (0)