Complex const initialisation and Intel compiler remark

Discussion in 'C++' started by Ryan Mitchley, Jul 19, 2004.

  1. 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
     
    Ryan Mitchley, Jul 19, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tim Clacy
    Replies:
    8
    Views:
    422
    Tim Clacy
    May 30, 2006
  2. Javier
    Replies:
    2
    Views:
    621
    James Kanze
    Sep 4, 2007
  3. whatnext
    Replies:
    9
    Views:
    448
  4. Kazik�
    Replies:
    4
    Views:
    1,403
    Jonathan Lee
    Jul 6, 2009
  5. Rainer Weikusat

    A remark

    Rainer Weikusat, Jun 11, 2012, in forum: Perl Misc
    Replies:
    2
    Views:
    637
    Rainer Weikusat
    Jun 11, 2012
Loading...

Share This Page