17 Mar
2009
17 Mar
'09
4:20 p.m.
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.