preshing / junction

Concurrent data structures in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

supporting C++11 rules issue

lion117 opened this issue · comments

hi , when i try to run the example in junction ,
IDE throw error which in the junction libs
q -20160229152448
q -20160229152414

system: win7 64bit
IDE: VS 2013

i did some digs , noted that the reason cause error is the IDE is not completely compatibility with C++ 11.
VS2013 IDE doesn't support the following usage

class UnitTest    // in VS2013
{
    const static int a = 10;    // VALID 
    const static string c = "good moringint";  // invalid 
    const static float d = 1.254;  // invalid 
    const static char e = '4';  // invalid 
};

Upgrading IDE VS2013 to VS2015 is not my option which is not free.
Modifying source code to fix the issue in VS2013 is my only way to apply junction .

OK, I didn't realize that was a C++11-specific usage. Pull requests are welcome.

By the way, VS2015 Community Edition is free.