Added flexbuffers reader and writer as well as first test (but does not pass)

This commit is contained in:
Patrick Urbanke
2023-11-11 23:16:49 +01:00
parent c206699f64
commit 5efa9df16e
70 changed files with 754 additions and 18 deletions
+20
View File
@@ -0,0 +1,20 @@
#include <iostream>
#include <map>
#include <memory>
#include <rfl.hpp>
#include <rfl/json.hpp>
#include <string>
#include "write_and_read.hpp"
void test_string_map() {
std::cout << "test_string_map" << std::endl;
std::map<std::string, std::unique_ptr<std::string>> homer;
homer.insert(
std::make_pair("firstName", std::make_unique<std::string>("Homer")));
homer.insert(
std::make_pair("lastName", std::make_unique<std::string>("Simpson")));
write_and_read(homer, R"({"firstName":"Homer","lastName":"Simpson"})");
}