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  2012  2013  2014  2015  2016  <2017 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
<== Date ==> <== Thread ==>

Subject: RE: EPICS 7 Release Candidate 1
From: Mark Rivers <rivers@cars.uchicago.edu>
To: 'Michael Davidsaver' <mdavidsaver@gmail.com>, "Peterson, Kevin M." <kmpeters@anl.gov>, "Johnson, Andrew N." <anj@aps.anl.gov>, EPICS tech-talk <tech-talk@aps.anl.gov>
Date: Wed, 6 Dec 2017 04:56:45 +0000
The syntax for the /std option is documented here 
https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version 

/std:[c++14|c++17|c++latest]

However this /std compiler flag appears to only be supported in VS 2017.  It is not listed in the compiler options for VS2015 here:
https://msdn.microsoft.com/en-us/library/fwkeyyhe.aspx

and generates the following error on VS2015:

cl : Command line warning D9002 : ignoring unknown option '/std:c++14'

So this will not fix the problem in VS2013 or VS2015.

Mark



> -----Original Message-----
> From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf
> Of Michael Davidsaver
> Sent: Tuesday, December 05, 2017 9:08 PM
> To: Peterson, Kevin M.; Johnson, Andrew N.; EPICS tech-talk
> Subject: Re: EPICS 7 Release Candidate 1
> 
> On 12/05/2017 03:17 PM, Peterson, Kevin M. wrote:
> > d:\epics7\base-7.0.1-rc1\modules\pva2pva\pdbapp\pdbgroup.h(136): note: see declaration
> of 'PDBGroupChannel'
> > ../pdb.cpp(61): error C2664:
> 'std::shared_ptr<PVIFBuilder>::shared_ptr(std::shared_ptr<PVIFBuilder> &&) noexcept':
> cannot convert argument 1 from 'std::auto_ptr
> > <PVIFBuilder>' to 'std::auto_ptr<PVIFBuilder> &&'
> 
> hmm, seems like that MSVC implementation of shared_ptr doesn't have all of the
> constructor overloads.
> Maybe they've just jumped the gun by removing the deprecated (in c++17) form, even when
> building in c++98?
> 
> http://en.cppreference.com/w/cpp/memory/shared_ptr/shared_ptr
> 
> Can you try to rebuild everything in >= c++11 mode by adding the "/std" compiler flag?
> When built with >= c++11 compatibility, unique_ptr is used instead of (deprecated)
> auto_ptr here.
> 
> https://msdn.microsoft.com/en-us/library/mt490614.aspx

References:
EPICS 7 Release Candidate 1 Andrew Johnson
Re: EPICS 7 Release Candidate 1 Peterson, Kevin M.
Re: EPICS 7 Release Candidate 1 Michael Davidsaver

Navigate by Date:
Prev: Re: caget() from C++ Mark Rivers
Next: How to configure and build ca2aa for converting files from Channel Archiver to Archiver Appliance Wang, Lin
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
Navigate by Thread:
Prev: Re: EPICS 7 Release Candidate 1 Michael Davidsaver
Next: Re: EPICS 7 Release Candidate 1 Mark Rivers
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
ANJ, 06 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·