EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: bcc55
From: Dirk Zimoch <[email protected]>
To: [email protected]
Date: Fri, 09 Nov 2012 15:45:33 +0100
On 09.11.2012 15:17, Dirk Zimoch wrote:
On 09.11.2012 11:26, "Ing.- Büro Austel" wrote:

using the free downloadable bcc55 compiler I get the error

../../../src/libCom/cxxTemplates/epicsOnce.cpp:
Error E2316 ../../../src/libCom/cxxTemplates/epicsSingleton.h 112:
'epicsSingleton<TYPE>::reference::operator =(const
epicsSingleton<TYPE>::reference &) is not a
member of 'epicsSingleton<TYPE>::reference'
***1 error in Compile ***

any idea ?
thanks in advance,
Jens



There are more C++ implementations in heaven and earth than are dreamt
of in your philosophy.

The same file epicsSingleton.h defines starting from line 46:

template < class TYPE >
class epicsSingleton {
public:
class reference {
public:
/*...*/
// this somewhat convoluted reference of the return
// type ref through the epicsSingleton template is
// required for the archaic Tornado gnu compiler
typename epicsSingleton < TYPE > :: reference &
operator = ( const reference & );
/*...*/
}

It seems the "archaic Tornado gnu compiler" and bcc55 don't quite agree
on what valid C++ template syntax looks like.

The syntax looks strange to me, too. I simplified it to:

reference & operator = ( const reference & );

And it compiles fine with several gcc versions for Linux and as well
with the gcc versions of vxWorks 5.5, 6.3 and 6.7. Maybe bcc is happy
with this change, too?

Can someone check with other compilers (e.g. clang, M$ cl)?

Dirk


BTW: This is exactly how the operator = looked like in 3.14.8, except that it was private and is now public. Does anyone remember why it had been changed?






Replies:
Re: bcc55 Andrew Johnson
References:
bcc55 "Ing.- Büro Austel"
Re: bcc55 Dirk Zimoch

Navigate by Date:
Prev: Re: bcc55 Dirk Zimoch
Next: Re: bcc55 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: bcc55 Dirk Zimoch
Next: Re: bcc55 Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024