File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1351,6 +1351,13 @@ struct to_json_fn
13511351 {
13521352 static_assert (sizeof (BasicJsonType) == 0 ,
13531353 " could not find to_json() method in T's namespace" );
1354+
1355+ #ifdef _MSC_VER
1356+ // Visual Studio does not show a stacktrace for the above assert.
1357+ using decayed = uncvref_t <T>;
1358+ static_assert (sizeof (typename decayed::force_msvc_stacktrace) == 0 ,
1359+ " forcing msvc stacktrace to show which T we're talking about." );
1360+ #endif
13541361 }
13551362
13561363 public:
@@ -1378,6 +1385,12 @@ struct from_json_fn
13781385 {
13791386 static_assert (sizeof (BasicJsonType) == 0 ,
13801387 " could not find from_json() method in T's namespace" );
1388+ #ifdef _MSC_VER
1389+ // Visual Studio does not show a stacktrace for the above assert.
1390+ using decayed = uncvref_t <T>;
1391+ static_assert (sizeof (typename decayed::force_msvc_stacktrace) == 0 ,
1392+ " forcing msvc stacktrace to show which T we're talking about." );
1393+ #endif
13811394 }
13821395
13831396 public:
You can’t perform that action at this time.
0 commit comments