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

Comparing with string constant does not work #24

Closed
githubuser0xFFFF opened this issue May 15, 2019 · 3 comments
Closed

Comparing with string constant does not work #24

githubuser0xFFFF opened this issue May 15, 2019 · 3 comments
Labels

Comments

@githubuser0xFFFF
Copy link

githubuser0xFFFF commented May 15, 2019

Hi,

The following code:

    utf8_string teststring = "µm";
    if (teststring == "µm")
    {
    	std::cout << "teststring == µm --> true" << std::endl;
    }

    if (teststring == utf8_string("µm"))
    {
    	std::cout << "teststring == utf8_string(\"µm\") --> true" << std::endl;
    }

produces the following output:

teststring == utf8_string("µm") --> true

So the comparison with the string constant fails.

@DuffsDevice
Copy link
Owner

I'm sorry for the inconvenience, there was a quite obvious bug still left (which I somewhat overlooked).
Hope, the issue is fixed by now 😌

Thank you,
Jakob

@DuffsDevice
Copy link
Owner

Does it work for you now?

@DuffsDevice
Copy link
Owner

DuffsDevice commented May 22, 2019

Feel free to open the ticket again, if there should still be any issues left. 😃

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

No branches or pull requests

2 participants