jeudi 22 janvier 2015

c2797 List initialization inside member initializer list or non static data member initializer not implemented

I m getting the following error in visual studio 2013 when i try to compile my project.


c2797:List initialization inside member initializer list or non static data member initializer not implemented.


Here is the piece of code for which it is throwing the above compiler error.


====sample.h====



enum class Process
{


TUNNEL_IP_VERSION, // Tunnel::IPVersion::Type
PADDING_BYTE,
IP_ADDRESS_FIT_ACTUAL_SIZE,
IP_ADDRESS_FIT_IPv6_SIZE,
PORT_NUMBER,
};

using ProcessingOrder = std::vector<Process>;

const ProcessingOrder m_ProcessingOrder =
{


Process::TUNNEL_IP_VERSION,
Process::PADDING_BYTE,
Process::IP_ADDRESS_FIT_IPv6_SIZE,
Process::PORT_NUMBER
};


Eventhough VS2013 supports c++11 feature - intialize list , why it is throughing the above error !? How to get off with this situation? What do i need to change in the code to fix this?


Aucun commentaire:

Enregistrer un commentaire