I tried to modernise C++ code to C++11, converting typedef statements to using statements:
class Configuration {
typedef uint8_t Protocols;
Into:
class Configuration {
using Protocols = uint8_t;
Where I get this error message from Visual Studio 2012:
error C2873: 'Protocols' : symbol cannot be used in a using-declaration
What is the reason why I can not use using there?
Aucun commentaire:
Enregistrer un commentaire