| Thread Tools | Search this thread |
|---|
jlperla
| June 24, 2009 9:29 AM PDT std and tr1 namespaces for Intel C++ and C++0X | ||||
I am interested in suggestions for std::tr1:: namespace alias's. I use Intel C++ 11.0 on Windows. The following are using Intel C++ within Visual Studio 2008. 1) I am currently using boost::function, etc. directly. Should I be using one with the built in compiler? I am able to: #include <array> but when I look at the file, it appears to be coming out of the Visual Studio includes instead of intel? Is this expected behavior or do I have something setup wrong? What about when I compile with Intel C++ 11.0 on Linux? 2) I am using the std:c++0x when I compile and compile to keep up as C++0X features sneak in. With C++0X, are the current tr1 features expected to be in the std:: or std::tr1:: namespace (or both?)? Can I do a hack like the following temporarily until C++0X?: namespace std { using namespace ::std::tr1; } I know you aren't supposed to do this, but I would hate to force the ugly std::tr1:: throughout my code if it is dissapearing soon. | |||||
|
|||||||||||||
|
|||||||||||||
| 8286 users have contributed to 31232 threads and 99107 posts to date. |
|---|
| In the past 24 hours, we have 7 new thread(s) 27 new posts(s), and 36 new user(s). In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing... Escalated as Please welcome our newest member titanius.anglesmith |