VS 11 -D_SCL_SECURE_NO_WARNINGS in Vs 10 treated a

2019-07-12 20:12发布

问题:

I was trying to use latest boost ::split function and with older VS compiler you usually got a warning when using it related to unsafe operations in implementation of the boost code.

Now when using Vs 11 it throws you an error regarding that. Is there a way to make it compile without modifying boost code ?

回答1:

After some more testing we saw that using -D_SCL_SECURE_NO_WARNINGS on command line works. It does not show errors anymore.