Search code examples
c++c++11portingc++03reserved-words

What are the new reserved words in C++11?


In preparing our source code to eventually move up to C++11 from C++03, I'd like to rename any tokens that inadvertently collide with new reserved words in C++11 that were not present in C++03.

I know there is the new reserved word final in C++11, are there other new reserved words that I should look for in our C++03 code base and rename?

Other than reserved words, are there any other changes that are made in C++11 wherein valid C++03 code is no longer valid in C++11?

While I'm at it, are there any changes that might be required for C++14?


Solution

  • alignas
    alignof
    char16_t
    char32_t
    constexpr
    decltype
    default
    export
    noexcept
    nullptr
    static_assert
    thread_local
    using
    

    override and final are reserved only in certain contexts.

    http://en.cppreference.com/w/cpp/keyword