Added support for basic_string<char, traits, allocator> (closes #1045)

This commit is contained in:
Benoit Blanchon
2019-08-12 14:21:45 +02:00
parent b9c4a0c5f6
commit 1e9cc285bb
6 changed files with 89 additions and 15 deletions

View File

@ -0,0 +1,14 @@
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2019
// MIT License
#pragma once
#include <string>
using namespace ARDUINOJSON_NAMESPACE;
struct custom_char_traits : std::char_traits<char> {};
struct custom_allocator : std::allocator<char> {};
typedef std::basic_string<char, custom_char_traits, custom_allocator>
custom_string;