Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with simple type extraction
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-08-16 14:32:22

Hi Nathan,

On Mon, Aug 16, 2010 at 12:09 PM, Nathan Crookston
<nathan.crookston_at_[hidden]> wrote:
> Hi Christian,
> On Mon, Aug 16, 2010 at 8:49 AM, Christian Henning <chhenning_at_[hidden]> 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. ;-)


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at