Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

std:: binding with c++0x std in icpc

$
0
0

I am using icpc with -std=c++0x, in which "std::uniform_real_distribution<double> rnd" throws a couple of errors during compile time, like

WangLandau.h(103): error: qualified name is not allowed
   std::uniform_real_distribution<double> rnd;
   ^

WangLandau.h(103): error #77: this declaration has no storage class or type specifier
   std::uniform_real_distribution<double> rnd;
   ^

WangLandau.h(103): error: expected a ";"
   std::uniform_real_distribution<double> rnd;
                                 ^

WangLandau2d.h(92): error: qualified name is not allowed
    std::uniform_real_distribution<double> rnd; //, rnd11(-1.0,1.0),rnd0pi(0.0,2.0*M_PI);
    ^

WangLandau2d.h(92): error #77: this declaration has no storage class or type specifier
    std::uniform_real_distribution<double> rnd; //, rnd11(-1.0,1.0),rnd0pi(0.0,2.0*M_PI);
    ^

WangLandau2d.h(92): error: expected a ";"
    std::uniform_real_distribution<double> rnd; //, rnd11(-1.0,1.0),rnd0pi(0.0,2.0*M_PI);

Where am I going wrong ?

                                  ^

 

 


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>