[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:

| Angus Leeming <[EMAIL PROTECTED]> writes:
| 
| | On Friday 06 September 2002 1:03 pm, Lars Gullik Bjønnes wrote:
| | 
| | > Ok, the following update seems to fix that problem.
| | > If you have time, please look at it again.
| | 
| | @@ -191,6 +197,9 @@ private:
| | 
| |     ///
| |     FloatList floatlist_;
| | +
| | +   ///
| | +   boost::shared_ptr<Counters> ctrs_;
| | 
| | A minor point. Shouldn't this be 
| | +   boost::shared_ptr<Counters> const ctrs_;
| | 
| | showing future maintainers that you're using the shared_ptr only to avoid 
| | including counter.h in lyxtextclass.h.
| 
| Perhaps... but how does adding const show that? (really)

Adding cost gives this error:

 /usr/include/g++-3/stl_vector.h: In method `LyXTextClass
&LyXTextClass::operator= (const LyXTextClass &)':
/usr/include/g++-3/stl_vector.h:595:   instantiated from `vector<_Tp, 
_Alloc>::_M_insert_aux (_Tp *, const _Tp &) [with _Tp = LyXTextClass, _Alloc = 
allocator<LyXTextClass>]'
/usr/include/g++-3/stl_vector.h:325:   instantiated from `vector<_Tp, 
_Alloc>::push_back (const _Tp &) [with _Tp = LyXTextClass, _Alloc = 
allocator<LyXTextClass>]'
../../src/lyxtextclasslist.C:139:   instantiated from here
/usr/include/g++-3/stl_vector.h:595: non-static const member `const
boost::shared_ptr<Counters> LyXTextClass::ctrs_', can't use default
assignment operator

-- 
        Lgb

Reply via email to