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: Re: C++ string question
From: "Konrad, Martin via Core-talk" <[email protected]>
To: EPICS Core Talk <[email protected]>, Mark Rivers <[email protected]>
Date: Fri, 31 May 2019 16:58:22 +0000
Hi Mark,
>> ../GenICamFeature.cpp:15:25: error: unable to find string literal
> operator ‘operator""fmt’ with ‘const char [17]’, ‘long unsigned int’ 
> arguments

Beginning with C++11 a space between string concatenation is mandatory.
Please use:

#define ERR_ARGS(fmt,...) asynPrint(mSet->getUser(), ASYN_TRACE_ERROR, \
    "Param[%s]::%s: " fmt "\n", mAsynName.c_str(), functionName,
__VA_ARGS__);

-Martin

-- 
Martin Konrad
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]

Replies:
RE: C++ string question Mark Rivers via Core-talk
References:
C++ string question Mark Rivers via Core-talk

Navigate by Date:
Prev: RE: C++ string question Mark Rivers via Core-talk
Next: RE: C++ string question Mark Rivers 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: RE: C++ string question Mark Rivers via Core-talk
Next: RE: C++ string question Mark Rivers 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, 31 May 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·