You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've been integrating this amazing json library into a closed source project for some time, recently when I started using std::variant a bit, things started to go south on gcc 8.1.0. The same code compiles and works fine on visual studio 2017 (latest as of this writing).
The basic idea is I have a variant with various structures defined in it, each with their own overload for to_json/from_json calls.
When I try to use std::get<structure_name>(variant_member) I get an error:
Ah, figured it out. I was using an alias for my variant type, then I was specializing the to_json with that definition. By removing that specialization, all is well.
So I've been integrating this amazing json library into a closed source project for some time, recently when I started using std::variant a bit, things started to go south on gcc 8.1.0. The same code compiles and works fine on visual studio 2017 (latest as of this writing).
The basic idea is I have a variant with various structures defined in it, each with their own overload for to_json/from_json calls.
When I try to use std::get<structure_name>(variant_member) I get an error:
Note other uses with std::variant have worked in the past on same compiler/platform.
The text was updated successfully, but these errors were encountered: