I'm trying to use the typelist implementation which has been made under VC++6, and I experience problems while using TypeAtNonStrict.
If I try to access an element outside of the array (the 3rd element if the array has 2 elements for instance), then the compiler spits the following error :
'Head' : is not a member of 'NullType'
Apparently the recursive search tries to look for a head on an already NullType element.
Am I using it incorrectly, or is it a known bug?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're using it correctly, and I recently discovered that, too, when trying to run the unit tests on it (tools/RegressionTest2).
As a matter of fact, it appears that only a few of the algorithms in Typelist.h work as they should in this partial port (Length, TypeAt and IndexOf), so I intend to look into if the VC7 port could be adjusted, so that at least some of it work on VC6, as well.
Thanks for the feedback.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to use the typelist implementation which has been made under VC++6, and I experience problems while using TypeAtNonStrict.
If I try to access an element outside of the array (the 3rd element if the array has 2 elements for instance), then the compiler spits the following error :
'Head' : is not a member of 'NullType'
Apparently the recursive search tries to look for a head on an already NullType element.
Am I using it incorrectly, or is it a known bug?
You're using it correctly, and I recently discovered that, too, when trying to run the unit tests on it (tools/RegressionTest2).
As a matter of fact, it appears that only a few of the algorithms in Typelist.h work as they should in this partial port (Length, TypeAt and IndexOf), so I intend to look into if the VC7 port could be adjusted, so that at least some of it work on VC6, as well.
Thanks for the feedback.