jeudi 10 novembre 2022

Get type contained in variant at run time in C++?

In C++, how do I print the type contained in a variant at run time?

My use case: passing a dictionary of values from Python to C++ using pybind11, and I want to print out the types that are received.

Aucun commentaire:

Enregistrer un commentaire