Gavin Greig (ggreig) wrote,
Gavin Greig

C++/CLI bug in VS2005

Last week I found what appears to be a bug in the implementation of C++/CLI in Visual Studio 2005, and this week Mark Hall has responded to my bug report, saying it will be considered for a future release.

I have mixed feelings about the bug: I'm partly quite pleased that I seem to have found something that no-one else had come across yet, but also partly disappointed for the same reason. Although I don't suppose there are a lot of people desperate to have a managed class inherit from its own template template parameter, it's not quite as rare as all that since template metaprogramming in C++ has become more popular.

If I'm the first to come across it, after a long period in public beta, it does make me wonder slightly whether C++/CLI is being pushed in its capabilities by anyone, because I don't usually regard myself as a pioneer. I first came across it when exploring the possibility of porting some of Loki to C++/CLI (something I would have thought other people would already have tried, if only from curiosity), but only narrowed it down to the actual issue when I tried to use the same idiom in my own code.

I have worked around it in the situation where it arose, although it has resulted in less tidy code and some unnecessary duplication of template parameters, and I guess I know what to avoid in future.
Tags: software development, thought, work

  • Weekend - Peter Pan, Bon Scott and Sydney Padua

    It’s been a while since I wrote, you know, actual words here – nearly six months, which is my longest gap ever – so I thought I’d make a cursory…

  • Hey DJ!

  • Dad’s Army

    I’ve taken a bit of an interest in Dad’s Army ever since I ran a short-lived roleplaying game in the 1990s in which the player characters were…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.