Van's House

I'm a developer at C++ team. I'm interested in everything related to C++

Browse by Tags

Tagged Content List
  • Blog Post: C++98 -> C++11: Pass by value or pass by reference?

    In GoingNative 2012 , there are some discussions on the new coding style for C++11. One interesting thing which is mentioned by Bjarne Stroustrup, Stephan T. Lavavej and Herb Sutter is the most efficient way to pass the argument. In C++98, pass by reference is in general more efficient because it...
  • Blog Post: C++0x features in VC2010 - nullptr

    Summary Page ( n3090.pdf is the current working draft of C++0x standard, it is available at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3090.pdf ) What we have before C++0x Everyone knows that null pointer value is NULL. In C++, NULL is defined as follows: #define NULL...
  • Blog Post: C++0x features in VC2010 - some decltype bugs

    1. decltype(*&function) https://connect.microsoft.com/VisualStudio/feedback/details/510640 int foo(); decltype (*&foo) df; // it should be "int (&)()", but it is "int (*)()" The internal representation (it is special for "*&function") doesn’t contain the enough information...
  • Blog Post: C++0x features in VC2010 - decltype

    Summary Page ( n3090.pdf is the current working draft of C++0x standard, it is available at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3090.pdf ) What we have before C++0x When do generic programming in C++, you often have to generate type from template parameters. Type traits...
  • Blog Post: C++0x features in VC2010 - auto

    Summary Page ( n3090.pdf is the current working draft of C++0x standard, it is available at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3090.pdf ) What we have before C++0x C++ is a strongly typed programming language. You have to specify the type when declaring variables. Sometimes...
  • Blog Post: C++0x features in VC2010 - static_assert

    Summary Page ( n3090.pdf is the current working draft of C++0x standard, it is available at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3090.pdf ) What we have before C++0x It is a common task to output meaningful error message from source code based on compile-time conditions...
  • Blog Post: C++0x features in VC2010 - Summary

    VC2010 has been released for a while. It adds many C++0x features (The complete list can be found here: C++0x Core Language Features In VC10: The Table ) In the following posts, I’d like to share some of my experience of these new features. They will cover: What we have before C++0x What...
Page 1 of 1 (7 items)