Added examples to cmake building process.

Set /WX flas that is warnings as errors on MSVC build.
Updated linux, osx, msvc build to refer to appropriate boost libraries.
This commit is contained in:
Takatoshi Kondo
2015-08-12 12:53:56 +09:00
parent e50cc5d79f
commit 12b5a6235a
15 changed files with 284 additions and 25 deletions

View File

@@ -29,7 +29,7 @@
#include <msgpack.hpp>
void array() {
std::array<int, 5> a { 1, 2, 3, 4, 5 };
std::array<int, 5> a { { 1, 2, 3, 4, 5 } };
std::stringstream ss;
msgpack::pack(ss, a);
@@ -77,7 +77,7 @@ void forward_list() {
}
void combi() {
std::array<int, 5> a { 1, 2, 3, 4, 5 };
std::array<int, 5> a { { 1, 2, 3, 4, 5 } };
std::tuple<bool, std::string, int> t {true, "ABC", 42};
std::unordered_map<std::string, int> m { {"ABC", 1}, {"DEF", 3} };
std::unordered_set<std::string> s { "ABC", "DEF" };