Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <thebc/array.hpp>
- int main() {
- char buf[256];
- thebc::array<char, 128> arr;
- std::memcpy( arr.data(), buf, 128 );
- arr.validate(); // no problems
- std::memcpy( arr.data(), buf, 129 );
- arr.validate(); // assertion failure
- }
Add Comment
Please, Sign In to add comment