I know this is not the answer to this question -
MSVC 2010 (I have) does not cause errors, compiles and works without hiccups
g ++ (GNU) says error: 'j' declared with an exception specification
Klang says error: exception specifications are not allowed in typedefs
Bottomline: Compiler Error in MSVC.
source share