static-assert/error-message-p1 - Compilation of p1.cpp. | Lecture 6 - slide 30 : 40 Program 2 |
$ g++ p1.cc -std=c++11 p1.cc:4:1: error: static assertion failed: Assuming that 8 bytes are used for int static_assert(sizeof(int)==8, "Assuming that 8 bytes are used for int"); $