The [[deprecated]] specifier is a C++14 feature, so it might not always be available on a C++11 compiler.