EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: pvAccessCPP: destroyable.h
From: Marty Kraimer via Core-talk <[email protected]>
To: Core-Talk <[email protected]>, Michael Davidsaver <[email protected]>
Date: Tue, 12 Mar 2019 14:47:39 -0400
This defines  method destroy.
Most or all uses of destroy have been deprecated.
But warnings like the following appear
../pv/channelProviderLocal.h:84:46: warning: ‘virtual void epics::pvDatabase::ChannelProviderLocal::destroy()’ is deprecated [-Wdeprecated-declarations]
     virtual void destroy() EPICS_DEPRECATED {};

But if the destroy method does not appear then the code will not compile.


If the following change is made to destroyable.h then the code will compile.

mrk> git diff src/utils/pv/destroyable.h
diff --git a/src/utils/pv/destroyable.h b/src/utils/pv/destroyable.h
index f9afc47..2c38eea 100644
--- a/src/utils/pv/destroyable.h
+++ b/src/utils/pv/destroyable.h
@@ -27,7 +27,7 @@ namespace epics { namespace pvAccess {
             /**
              * Destroy this instance.
              */
-            virtual void destroy() = 0;
+            virtual void destroy() {}

         protected:
             virtual ~Destroyable() {}
mrk>


Michael,

Can this change be made?


Marty


Replies:
Re: pvAccessCPP: destroyable.h Michael Davidsaver via Core-talk

Navigate by Date:
Prev: Jenkins build is back to normal : epics-base-7.0-win64-test #7 APS Jenkins via Core-talk
Next: Re: pvAccessCPP: destroyable.h Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Jenkins build is back to normal : epics-base-7.0-win64s-test #7 APS Jenkins via Core-talk
Next: Re: pvAccessCPP: destroyable.h Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 12 Mar 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·