Gavin Greig (ggreig) wrote,
Gavin Greig
ggreig

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
Subscribe

  • A March for Independence (in April)

    On Saturday, YES North East Fife organised a march across the Tay Bridge from Fife to Dundee followed by a rally in the City Square. It was…

  • 20 Years

    On the first of October, it was 20 years since I started work at Insights, and today I got my fourth block signifying a period of 5 years…

  • World Porridge Day

    Today is World Porridge Day, which is being promoted by Mary’s Meals. Mary’s Meals provide a daily meal of maize porridge ( likuni phala) to some…

  • Post a new comment

    Error

    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.
  • 2 comments