16 Aug
2010
16 Aug
'10
6:32 p.m.
Hi Nathan,
On Mon, Aug 16, 2010 at 12:09 PM, Nathan Crookston
Hi Christian,
On Mon, Aug 16, 2010 at 8:49 AM, Christian Henning
wrote: Hi there, I cannot understand why the code below gives me a static assertion. As far as I know I use a very common technique to to extract a type from templated class using specialization over this class.
I was surprised that this didn't work as well. After some investigation, I found that adding a 'const' to the specialization worked for me:
It works for me now too. Any idea why that is? Thank you very much! I have spend way too much time for these couple of lines of code. ;-) Christian