[C++-sig] How to search constructors with namespace
vishal bayskar
vishal.bayskar at nechclst.in
Tue Jun 1 12:19:39 CEST 2010
>how do I search for the constructor
>parent::child::A::A(parent::child::B const & arg0) [constructor]
>What arg_types should I provide ?
>I have tried with and without namespaces like
>cons = mb.constructors('A', arg_types=['parent::child::B const &'])
>cons = mb.constructors('A', arg_types=['child::B const &'])
>cons = mb.constructors('A', arg_types=['B const &'])
>But every time it is giving an error
>raise RuntimeError( "Multi declaration query returned 0 declarations." )
>I don't know what bits I am missing please suggest.
Now I have used
cons = mb.constructors('A', arg_types=['::parent::child::B const &'])
and it is working fine.
Thanks can someone, please let me know the reason why :: (scope operator) is
required in the start of the argument.
--
View this message in context: http://old.nabble.com/How-to-search-constructors-with-namespace-tp28739257p28739908.html
Sent from the Python - c++-sig mailing list archive at Nabble.com.
More information about the Cplusplus-sig
mailing list