GithubHelp home page GithubHelp logo

boost locale support about bh HOT 4 CLOSED

eddelbuettel avatar eddelbuettel commented on August 17, 2024
boost locale support

from bh.

Comments (4)

eddelbuettel avatar eddelbuettel commented on August 17, 2024

Quick question: Is that header-only? Can it be made header-only?

A few Boost library require linking, a few of those can be #ifdef'ed to remove some features to not require linking. But most examples still requiring linking are text / string related so I am not too hopeful here.

Can you try to find out some more details?

from bh.

mlampros avatar mlampros commented on August 17, 2024

Besides the BH package I do include (for a unix OS) also the following,

#ifndef _WIN32
  #include <boost/locale.hpp>
#endif

As of boost 1.62 the boost/locale.hpp file includes the following:

#ifndef BOOST_LOCALE_HPP_INCLUDED
#define BOOST_LOCALE_HPP_INCLUDED

#include <boost/locale/boundary.hpp>
#include <boost/locale/collator.hpp>
#include <boost/locale/conversion.hpp>
#include <boost/locale/date_time.hpp>
#include <boost/locale/date_time_facet.hpp>
#include <boost/locale/encoding.hpp>
#include <boost/locale/format.hpp>
#include <boost/locale/formatting.hpp>
#include <boost/locale/generator.hpp>
#include <boost/locale/gnu_gettext.hpp>
#include <boost/locale/info.hpp>
#include <boost/locale/localization_backend.hpp>
#include <boost/locale/message.hpp>
#include <boost/locale/util.hpp>

#endif

The locale issue is apparent, for instance, when I try to convert non english text to lower/upper case.

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

That does not answer my question about the need for linking. Looking at your package I see

@LOCALE_LIBS@ -lboost_system

and that is a no-no for the BH package. No linking. Headers only.

from bh.

eddelbuettel avatar eddelbuettel commented on August 17, 2024

And it is right in your own configure.ac as LOCALE_LIBS="-lboost_locale".

Sorry, can't do in BH. You can try to build on top of BH and shadow with local copies your package. Some stan related packages did that for a while, and we moved things which are in fact header-only over.

BH cannot give you all of Boost without linking. No Free Lunch. Sorry.

from bh.

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.