|
Is there a way to test if an Object element variable is an integer, string, or char string?
|
# ¿ Mar 20, 2008 19:36 |
|
|
# ¿ May 4, 2024 00:24 |
|
Drx Capio posted:Are you talking about C# or something? C++ is too strongly typed to cleanly support a standard Object type, but Java and C# do. I'm using it in C++, in the context of a template for a binary tree based dictionary. The object is an element in a node. In the dictionary, I'm trying to test the element to determine if it is an int or string.
|
# ¿ Mar 20, 2008 20:00 |
|
Standish posted:http://codepad.org/cTLm8Woy Cool. Thanks.
|
# ¿ Mar 20, 2008 20:26 |