mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 08:46:19 +08:00
feat: add support for parsing std::wstrings
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "test_wstring.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <rfl.hpp>
|
||||
#include <rfl/json.hpp>
|
||||
#include <source_location>
|
||||
#include <string>
|
||||
|
||||
#include "write_and_read.hpp"
|
||||
|
||||
namespace test_wstring {
|
||||
void test() {
|
||||
std::cout << std::source_location::current().function_name() << std::endl;
|
||||
|
||||
std::map<std::string, std::wstring> homer;
|
||||
homer.insert(std::make_pair("firstName", L"Homer"));
|
||||
|
||||
write_and_read(homer, R"({"firstName":"Homer"})");
|
||||
}
|
||||
} // namespace test_wstring
|
||||
Reference in New Issue
Block a user