This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <contracts> | |
| void handle_contract_violation(const std::contracts::contract_violation& v) { | |
| std::cerr << "violation at " << v.location().function_name() | |
| << ": " << v.comment() << '\n'; | |
| std::abort(); | |
| } | |
| struct S { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <meta> | |
| #include <string_view> | |
| namespace meta = std::meta; | |
| class S { | |
| public: | |
| int size_ = 2; | |
| // int size = 2; // Non-compile - should end with _ |