1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 <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 2012 2013 <2014> 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: EPICS on VxWorks6.9 |
From: | Dirk Zimoch <[email protected]> |
To: | [email protected] |
Date: | Wed, 16 Jul 2014 14:27:17 +0200 |
On 16.07.2014 14:00, Dirk Zimoch wrote:
Newer C++ compilers consider more and more things in EPICS errors. And maybe they are right. The problem is T * volatile * buffer; in epicsRingPointer.h. I am not sure if "volatile" really makes any sense here. The other possibility is to cast away the "void" in the destructor. delete [ ] (T*) buffer;
delete [ ] (T**) buffer;
Or whatever the nicer C++ syntax is (probably using const_cast<T*>()?) Dirk
epicsRingPointer.cpp ..\..\..\src\libCom\ring\epicsRingPointer.h(93) : *error C2664: 'delete' : cannot convert parameter 1 from 'void *volatile * ' to 'void *'* * Conversion loses qualifiers* ..\..\..\src\libCom\ring\epicsRingPointer.cpp(82) : while compiling class-template member function '__thiscall epicsRingPointer<void>::~epicsRingPointer<void>(void)' make[3]: Leaving directory `C:/EPICS/base-3-14-12-4/src/libCom/O.win32-x86' make[2]: Leaving directory `C:/EPICS/base-3-14-12-4/src/libCom' make[1]: Leaving directory `C:/EPICS/base-3-14-12-4/src' */The following code is written in epicsRingPointer.h (line 93):/* inline epicsRingPointer<T>:: ~epicsRingPointer( ) { delete [ ] buffer; } If anyone can suggest us the solution to overcome this error it will be of help to us. Regards, Amit Chauhan, RRCAT, Indore