Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpl] Accessing the nested value of an invoked placeholder
From: Nathan Crookston (nathan.crookston_at_[hidden])
Date: 2010-10-27 17:36:57


Hi Dave,

On Wed, Oct 27, 2010 at 2:59 PM, David Abrahams <dave_at_[hidden]> wrote:
<snip code>
> This is a problem; reaching inside a template for a member (like
> ::type) always causes it to be instantiated.  That means
> traitMeta<_>::type gets evaluated early, which isn't what you want.
> I think if you just drop the ::type you'll get the semantics you want.

Ah, this makes sense. Thanks for the explanation, things are working now.

Nate


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net