$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] Solved, thanks!
From: er (erwann.rogard_at_[hidden])
Date: 2009-01-12 23:08:32
Steven Watanabe wrote:
> AMDG
> 
> er wrote:
>> 3 copy constructors are shown below, on the last of which works.
>> However it's really the first one that I'd like to get to work.
>>
>> struct B : public A{
>>  template<typename ArgPack>
>>  B(const ArgPack& arg):A(arg){}
>>
>>  B& operator=(const B& that){
>>      if(&that!=this){ A::operator=(that); return *this; } }
>>
>>
>>  //B(const B& that):A(that){} //no match for 'operator[]' in 
>> 'arg[(+<unnamed>::xx)->boost::parameter::keyword<T>::operator| [with 
>> Default = int, Tag = tag::xx](((const int&)((const int*)(&0))))]'|
>>
>>  //B(const B& that):A(static_cast<A>(that)){} //fails too
> 
> This is almost right.  Cast to const A& instead of A.
> 
> In Christ,
> Steven Watanabe
  Thanks!