Giter VIP home page Giter VIP logo

Comments (1)

Flamefire avatar Flamefire commented on July 26, 2024

It looks like the virtual function dispatch gets messed up in your use case as indicated by __cxxabiv1::__si_class_type_info in the call stack which doesn't look right.

The actual type of boost::locale::collator<char>, i.e. of *this inside the compare call is likely one from boost::locale::impl_std or boost::locale::impl_posix. And those only derive from std::collate but not from boost::locale::collate which means they do not implement that do_compare function taking a level argument. And seemingly std::use_facet does not check the actual type but only the id (on OSX/libc++).
In particular only the WinAPI and the ICU backends implement that facet and you don't even have either build which explains this.

So in a semi-correct version your use of std::use_facet<boost::locale::collator<char>> should throw a std::bad_cast. At least until the Posix and Std backends implement that facet which I don't think is possible.

from locale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.