This is probably a ridiculously easy question, but I\'ve been searching around for the answer for a while yet can\'t seem to figure this out. I\'m trying to initialize a con
Your code works for me (MSVC2010) - as I believe it should. What compiler are you trying this with?
The only complaint a compiler may/should have with the code is a warning that the automatic copy constructor and assignment operator cannot be created because of the const member.