Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
jlperla
Total Points:
440
Status Points:
390
Green Belt
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.
Judith Ward (Intel)
Total Points:
742
Status Points:
242
Brown Belt
June 24, 2009 10:54 AM PDT
Rate
 
#1

Intel does not provide its own C and C++ libraries with just a few exceptions for things like the
math library. When you #include a header file it will just pick up the same one you would have
gotten had you been using Microsoft on Windows or Gnu on Linux/Mac.

Most of the classes that were in technical report 1 have been accepted into the new C++0x standard.
I presume that the Gnu and Microsoft libraries at some point will put them into namespace std.

Judy

dvyy
Total Points:
210
Status Points:
160
Green Belt
June 25, 2009 1:54 AM PDT
Rate
 
#2

C++0x tr1 library relate to VC++ and  GCC library ,Only New C++0x language syntax relate to intel C++ compiler !





Intel Software Network Forums Statistics

8445 users have contributed to 31553 threads and 100398 posts to date.
In the past 24 hours, we have 10 new thread(s) 30 new posts(s), and 43 new user(s).

In the past 3 days, the most popular thread for everyone has been Lost in MKL The most posts were made to TBB on linux segfaulting The post with the most views is Hi,if you were using imsl yo

Please welcome our newest member nonamez