You can fake it with std::map<std::string, boost::any>, but it really is not the same. There is no way to get anything truly like anonymous C # 3+ types in C ++.
Anonymous types are really useful for LINQ anyway, and C ++ doesn't support anything like that either, so it's unlikely that would be useful anyway.
source
share