Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • vrennertJuly 13, 2010 3:32 AM PDT   
    nullptr in VS2010

    Recently I've noticed my code failing to compile because Intel Composer does not know anything about the nullptr or nullptr_t type which was introduced into Visual Studio 2010 as a C++0x language feature.
    For now i fixed it by defining nullptr=0 as a preprocessor macro but this isn't ideal.

    I would like to see my code compile with icc as it is.
    Microsoft is also using the nullptr type in their version of STL in combination with the perfect forwarding feature which passes parameter as they are to another function. And as long people use NULL to initialize pointers the result is wrong because NULL == 0 which is an int and therefor not deduced to the same type.

    Changing the /Qstd=c++0x flag does not change the compiler behavior.

    P.S. I have tested with Composer 2011 Beta update 2

    Regards
    Viktor

    Jennifer Jiang (Intel)July 15, 2010 10:53 AM PDT
    Rate
     
    nullptr in VS2010

    The nullptr is one of those few features we do not support yet.
    Let me send it to compiler engineer as a feature request. It's been requested by some others already.

    Thanks,
    Jennifer

    Download Intel(R) Compiler Product Updates: Registration Center.
    Try Intel(R) Compiler Products: Intel Software Evaluation Center

    binksoftwareFebruary 18, 2011 2:16 AM PST
    Rate
     
    nullptr in VS2010

    I just got Intel C++ Studio Update 1 and ran into the same problem: nullptr and nullptr_t are not recognized.
    What is the status of this feature?


    trekker99March 17, 2011 2:14 AM PDT
    Rate
     
    nullptr in VS2010

    It would be good if Intel can support this soon. We work with people who are using VS2010 ans use nullptr in their code. It becomes really troublesome to integrate their code into our system if Intel doesn't support nullptr. Any idea when this feature might be released?

    Jennifer Jiang (Intel)March 17, 2011 8:22 AM PDT
    Rate
     
    nullptr in VS2010

    The nullptr support has been implemented but only in the mainline, so it will be in the next release.

    Jennifer



    Download Intel(R) Compiler Product Updates: Registration Center.
    Try Intel(R) Compiler Products: Intel Software Evaluation Center

    trekker99March 21, 2011 10:55 PM PDT
    Rate
     
    nullptr in VS2010

    Can you clarify what you mean by "next release"? Am I correct to say it will not appear in any version of Composer XE 2011? Thanks!

    binksoftwareMarch 31, 2011 10:58 PM PDT
    Rate
     
    nullptr in VS2010

    Any estimates for its beta and official release?

Forum jump:  

Intel Software Network Forums Statistics

17,025 users have contributed to 48,319 threads and 172,758 posts to date.

In the past 24 hours, we have 11 new thread(s) 54 new posts(s), and 47 new user(s).

In the past 3 days, the most popular thread for everyone has been Optimalization of sine function\'s taylor expansion The most posts were made to Most likely, the issue is that The post with the most views is Optimalization of sine function\'s taylor expansion

Please welcome our newest member redfruit83


For more complete information about compiler optimizations, see our Optimization Notice.