EPICS Controls Argonne National Laboratory

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: "Ing.- Büro Austel" <[email protected]>
Cc: [email protected]
Date: Fri, 09 Nov 2012 15:17:45 +0100
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





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

Navigate by Date:
Prev: Linkam temperature controller CI94 serial programming 洪春霞
Next: Re: bcc55 Dirk Zimoch
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: bcc55 "Ing.- Büro Austel"
Next: Re: bcc55 Dirk Zimoch
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 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·