Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
UINT64 to UINT truncation
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> #include <Windows.h> int main() { UINT u32 = 0xFFFFFFFF; UINT64 u64 = u32; ++u64; std::cout << u32 << std::endl; std::cout << u64 << std::endl; std::cout << ((UINT(u64) > u32) ? "Greater" : "Not Greater") << std::endl; }
run
|
edit
|
history
|
help
0
throwing Copyable versus throwing MoveOnly
Error defining lambda inside namespace
Guess a number in c++
Workaround for https://github.com/Project-OSRM/osrm-backend/pull/4385
additional layer of indirection
Hangman
std::string
success
base call virtual
visual-wtf