diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/001help.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/001help.cc b/cpp/001help.cc index 8f2c65d4..475434e5 100644 --- a/cpp/001help.cc +++ b/cpp/001help.cc @@ -43,3 +43,6 @@ using std::cerr; using std::string; typedef size_t index_t; const index_t NOT_FOUND = string::npos; +:(after "int main(int argc, char* argv[])") +assert(sizeof(string::size_type) == sizeof(size_t)); +assert(sizeof(index_t) == sizeof(size_t)); |