N
Noah Roberts
In reading "Thinking about C++ V2" I started using the TestSuite
described in Ch2. In it there are lines that print out
typeid(*this).name(). In the book it shows up as "TestXXX" but in
actual experience with G++ it prints out "##TestXXX" instead. For
instance, WinHelpersTest gets printed as "14WinHelpersTest".
Is G++ behaving appropriately? No other examples on web of
type_info::name show a return like that; they all show "ClassName"
instead of "##ClassName".
described in Ch2. In it there are lines that print out
typeid(*this).name(). In the book it shows up as "TestXXX" but in
actual experience with G++ it prints out "##TestXXX" instead. For
instance, WinHelpersTest gets printed as "14WinHelpersTest".
Is G++ behaving appropriately? No other examples on web of
type_info::name show a return like that; they all show "ClassName"
instead of "##ClassName".