Menu

Problem with typelists under VC++6.0

Help
Anonymous
2002-09-16
2002-09-17
  • Anonymous

    Anonymous - 2002-09-16

    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?

     
    • Terje Sletteb?</td>		</tr>		<tr

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.