[Boost-users] boost.parser parse int or double?

2025-04-12 Thread kila suelika via Boost-users
``` #include #include #include #include namespace bp = boost::parser; auto numeric_parser = bp::int_ | bp::double_; //auto numeric_parser = bp::double_ | bp::int_; void parse_number(const std::string& input) { auto result = bp::parse(input, numeric_parser); if (result) { std:

Re: [Boost-users] Partial serialization of a program

2022-11-03 Thread kila suelika via Boost-users
I write an example where one can manually set pointer in load: #include #include #include #include #include #include #include #include #include std::map m{ {"x",5} }; struct A { friend class boost::serialization::access; int* x; template void save(Archive& ar, const unsigned int vers

Re: [Boost-users] Boost geometry: 3d difference and union?

2021-12-13 Thread kila suelika via Boost-users
I don't think there will be any plan on 3D geometry( though I'm not the author). It's very complex. On Monday, December 13, 2021, KL via Boost-users < boost-users@lists.boost.org> wrote: > > Hi, > > Is there any plan to have 3d algorithms like difference and union in Boost > geometry? > > Thanks

Re: [Boost-users] Boost.asio. Crash in Tutorial Timer.5, "Synchronizing handlers in multithreaded programs"

2021-11-10 Thread kila suelika via Boost-users
Why didn't you try a newer version? 1.65 is too old. On Thu, Nov 11, 2021 at 1:29 PM Senthil Cheetancheri via Boost-users < boost-users@lists.boost.org> wrote: > Hi, > > I'm learning to use Boost.asio by going through the tutorials at [1]. > > However, the listing for "Synchronizing handlers in

Re: [Boost-users] Boost's Stage\Lib *.a Files

2021-08-23 Thread kila suelika via Boost-users
For "mt-d-x64", here "d" means debug version. It contains some extra symbols for debugging purpose. Without "d", it's release version. Use release version as much as possible, usually it's faster and smaller. On Friday, August 20, 2021, Alexander Tanseco via Boost-users < boost-users@lists.boos

Re: [Boost-users] Question about Boost Integer

2021-02-27 Thread kila suelika via Boost-users
https://www.boost.org/doc/libs/1_75_0/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html On Sat, Feb 27, 2021 at 4:44 AM Emilio Paolini via Boost-users < boost-users@lists.boost.org> wrote: > Hi everyone, i'm pretty new to Boost. I need to use as a default type for > the CNL.

Re: [Boost-users] Question about Boost Integer

2021-02-27 Thread kila suelika via Boost-users
See this page, int128_t is simply // Fixed precision signed types: typedef number > int128_t; Change 128 to what you want. On Sat, Feb 27, 2021 at 4:44 AM Emilio Paolini via Boost-users < boost-users@lists.boost.org> wrote: > Hi everyone, i'm pretty new to Boost. I need to use as a default

Re: [Boost-users] [multi_array] Feature request: constructor and resize from values

2020-11-21 Thread kila suelika via Boost-users
As you don't give any example, I can't know exactly what you want to do. But how about using multi_array to store pointers? Then you can construct your objects at any time. On Fri, Nov 20, 2020 at 11:55 PM Eugenio Bargiacchi via Boost-users < boost-users@lists.boost.org> wrote: > I'd love to be a

Re: [Boost-users] limited accuracy for tanh-sinh integrator

2020-08-21 Thread kila suelika via Boost-users
*First problem - more precision* Check the stopping condition of boost.math, it says the tolerance is \sqrt{\epsilon}. So if you use 100-digits precision, then tolerance is roughly 10^-50. For more precision, you have to use more digits such as 1000 digits by using BF= number >; . Full code: #incl

Re: [Boost-users] Integrate function with arguments using quadrature

2020-08-19 Thread kila suelika via Boost-users
In you lambda expression, you have to capture B_local : auto f = [&](Real x) { return std::bind(f0, _1, B_local)(x); }; The *[&]* tells the compiler to capture variables by reference automatically. On Mon, Aug 17, 2020 at 2:26 AM Anirban Pal via Boost-users < boost-users@lists.boost.org> wro