Merge pull request #80 from RT222/master

Fix the inclusion of both cpp11 and cpp17 headers on C++17 compilation
This commit is contained in:
Nemanja Trifunovic 2021-05-31 08:41:12 -04:00 committed by GitHub
commit 4e11497669
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,12 +29,16 @@ DEALINGS IN THE SOFTWARE.
#define UTF8_FOR_CPP_7e906c01_03a3_4daf_b420_ea7ea952b3c9
#include "checked.h"
#include "cpp11.h"
#include <string>
namespace utf8
{
inline void append(char32_t cp, std::string& s)
{
append(uint32_t(cp), std::back_inserter(s));
}
inline std::string utf16to8(std::u16string_view s)
{
std::string result;