Fixed warnings on build with CMAKE_BUILD_TYPE=Release.

Added stream outputs to suppress warnings and to help understanding.
This commit is contained in:
Takatoshi Kondo
2015-09-01 11:06:29 +09:00
parent 9b156823ff
commit be0f8c280a
3 changed files with 66 additions and 13 deletions

View File

@@ -17,6 +17,7 @@
#include <cassert>
#include <memory>
#include <iostream>
#include <msgpack.hpp>
@@ -53,6 +54,6 @@ int main() {
my m1(42);
msgpack::zone z;
msgpack::object obj(m1, z);
auto m2 = obj.as<my>();
assert(m1.a == m2.a);
std::cout << obj << std::endl;
assert(m1.a == obj.as<my>().a);
}