Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Commented Issue: SafeInt Error [216]

$
0
0
I am using the one of the sample provided by microsoft. Its a win32 application.
Then i installed the casablanca and used the my code written for rest webservices

I am getting following errors;

error C2872: 'SafeInt' : ambiguous symbol
error C2872: 'SafeIntException' : ambiguous symbol
error C2872: 'SafeIntNoError' : ambiguous symbol
IntelliSense: "SafeIntDivideByZero" is ambiguous
error C2872: 'SafeIntArithmeticOverflow' : ambiguous symbol
error C2872: 'SafeIntDivideByZero' : ambiguous symbol

Here is one of output from the build errors:

f:\3dprinting\apps\3dviewer\3dviewer\viewers\printpreview\packages\cpprestsdk.2.1.0\build\native\include\compat\safeint3.hpp(596): error C2872: 'SafeIntError' : ambiguous symbol could be 'f:\3dprinting\apps\3dviewer\3dviewer\viewers\printpreview\packages\cpprestsdk.2.1.0\build\native\include\compat\safeint3.hpp(519) : SafeIntError' or 'c:\program files (x86)\microsoft visual studio 12.0\vc\include\safeint.h(262) : msl::utilities::SafeIntError'
Comments: I'm updated our internal safeint3 to put types in the msl::safeint3 namespace. This avoids any issues with conflicting with Visual Studio versions. Will be in the master branch and our NuGet package with the 2.5.0 release.

Viewing all articles
Browse latest Browse all 4845

Trending Articles