DEV Community

Discussion on: C++ how do I store any value in a map

Collapse
 
aka_dude profile image
Andrew Andersen • Edited

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