Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Complex const initialisation and Intel compiler remark

Reply
Thread Tools

Complex const initialisation and Intel compiler remark

 
 
Ryan Mitchley
Guest
Posts: n/a
 
      07-19-2004
Hi all

The Intel compiler generates a #383 remark: "value copied to temporary,
reference to temporay used", for both of the following lines:

const complex<FTYPE> CBase::m_cfZero = complex<FTYPE>(0.0f, 0.0f);
const complex<FTYPE> CBase::m_cfOne(1.0f, 0.0f);

Should I not worry about this remark, or is there a better way to initialise
a static const complex member variable without these remarks being
generated? (FTYPE is set to float, by the way).

Thanks!

Ryan



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel compiler, efficiency of various complex number types and FFTWvs. Intel's FFT. Kazik´┐Ż C++ 4 07-06-2009 05:09 PM
const vector<A> vs vector<const A> vs const vector<const A> Javier C++ 2 09-04-2007 08:46 PM
Initialisation of reference vs. initialisation of reference member Tim Clacy C++ 8 05-30-2006 06:14 PM
Removing ACL remark on a PIX? Paul Hutchings Cisco 5 11-11-2003 06:05 PM
Re: 12.3(1a) and "Duplicate remark statement" John Caruso Cisco 2 07-24-2003 12:22 AM



Advertisments