Compiler Error C3068
To resolve this error, do at least one of the following:
Do not compile with /EHsc.
Do not mark the function as naked.
Do not create a temporary object in the function.
If a function creates a temporary object on the stack, if the function throws an exception, and if C++ exception handling is enabled, the compiler will clean up the stack if an exception is thrown.
When an exception is thrown, compiler generated code, called the prolog and epilog and which are not present in a naked function, is executed for a function.