You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python we can get all the values from a Pool as simply as pool[name] for name in pool.descriptorNames()
Is there any equivalent for C++...?
We can get the descriptor names, but then it seems like the caller needs to know the C++ type for each value. So it either needs store some kind of mapping of descriptor keys to types, or just try / catch on Pool::value<T> for each possible type.
What's the recommended approach?
The text was updated successfully, but these errors were encountered:
In Python we can get all the values from a
Pool
as simply aspool[name] for name in pool.descriptorNames()
Is there any equivalent for C++...?
We can get the descriptor names, but then it seems like the caller needs to know the C++ type for each value. So it either needs store some kind of mapping of descriptor keys to types, or just
try
/catch
onPool::value<T>
for each possible type.What's the recommended approach?
The text was updated successfully, but these errors were encountered: