Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpp_str() impossible to be used with u8string #63

Closed
patrolez opened this issue Aug 18, 2021 · 2 comments
Closed

cpp_str() impossible to be used with u8string #63

patrolez opened this issue Aug 18, 2021 · 2 comments

Comments

@patrolez
Copy link

patrolez commented Aug 18, 2021

Hello,
while using object with tiny_utf8::u8string type there is a problem with compilation while cpp_str() and/or cpp_str_bom() is being in use by a code.

Compiler: g++-10, 10.3.0-1ubuntu1~20.04
With -std=c++2a flag.

../../libs/tiny-utf8/include/tinyutf8/tinyutf8.h:3404:46: error: conversion from ‘basic_string<char>’ to non-scalar type ‘basic_string<char8_t>’ requested
 3404 |   std::basic_string<data_type> result = std::string( size() + 3 , ' ' );
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~

std::basic_string<data_type> result = std::string( size() + 3 , ' ' );

@patrolez patrolez changed the title cpp_str() impossible to be used cpp_str() impossible to be used with u8string Aug 18, 2021
@DuffsDevice
Copy link
Owner

Hi Patryk,

Thanks for submitting a bug report, I'll fix it right away!

DuffsDevice added a commit that referenced this issue Aug 19, 2021
Fixed issue #63
@DuffsDevice
Copy link
Owner

Let me know, if everything works for you now. If not, please feel free to re-open the ticket :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants