I had some business with Arduino recently, so I wrote my implementation of Variant without typeinfo: Pastebin (there is unused get_type struct, don't get confused with it)
Compiles and works with g++ -std=c++11 and g++ -std=c++17
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I had some business with Arduino recently, so I wrote my implementation of Variant without
typeinfo
: Pastebin (there is unusedget_type
struct, don't get confused with it)Compiles and works with
g++ -std=c++11
andg++ -std=c++17