on-internet
← Community

How do I get the data type of a value using C++?

Stack Overflow ·

I need a way to get the data type of a value using C++. Something along the line of: Below example use the value "foo". struct foo {}; std::string name = nameof(foo); name should equal "foo".

Comments

Sign in or sign up to comment and upvote.

No comments yet.