Re: [Boost-users] Strange compiler behaviour with mpl::vector
Sorry, in the error message you will read the type name discriminated_union.
This is the real type name, think of it as my_class.
Thanks and sorry again,
Ovanes
_____
From: Ovanes Markarian [mailto:om_boost@keywallet.com]
Sent: Sunday, June 25, 2006 23:18
To: 'boost-users@lists.boost.org'
Subject: Strange compiler behaviour with mpl::vector
Hello all!
I posted the following message
http://lists.boost.org/boost-users/2006/06/20271.php a few days ago, but did
not get any replies.
I know there is an error in the const_ref class. But nevertheless the
problem which occures is that my class accepts a vector of supported types
as template parameter.
It has two constructors (no default ctor):
template<class Seq_>
class my_class
{
public:
typedef my_class
::type
{};
I can understand that the compiler is unable to make a decision which ctor
to use, but I do not get an ambiguaty error. It seems like the compiler
simply quits expanding templates and uses the last most successful ctor
matched before the error. This happens only when I use mpl::vector templated
type in conjunction with templated ctor. Other types like below work fine:
template
participants (1)
-
Ovanes Markarian