Boost Users :
Subject: Re: [Boost-users] [mpl] is_constructible_from
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2009-03-17 12:20:15
Roman Perepelitsa wrote:
> I need a metafunction that returns true iif a type has a constructor
> with 2 arguments of a given type. Does mpl have it? If not, is it
> possible to implement?
As has been explained it's impossible. However, if you change the
construction syntax of your objects you could do it. If you made the
constructors private or protected and provided a static function for
building them you'd have something that can be tested with metaprogramming.
Not saying this will help you, but it's an idea.
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