[Boost-users] Excessive dynamic allocation when using boost::split(..., boost::is_any_of(", "))?

2022-07-05 Thread Dominique Pellé via Boost-users
Hi This following program shows many allocations coming from boost::split(..., boost::is_any_of(",")): ``` $ cat split.cpp #include #include #include #include int main() { std::string str = "foo,bar,foobar,quux"; std::size_t s = 0; for (int i = 0; i < 100; ++i) { boost::container::

Re: [Boost-users] Excessive dynamic allocation when using boost::split(..., boost::is_any_of(", "))?

2022-07-05 Thread Marshall Clow via Boost-users
On Jul 5, 2022, at 1:29 AM, Dominique Pellé via Boost-users wrote: > > Hi > > This following program shows many allocations coming > from boost::split(..., boost::is_any_of(",")): > ``` > $ cat split.cpp > > #include > #include > #include > #include > > int main() { > std::string str = "

Re: [Boost-users] Excessive dynamic allocation when using boost::split(..., > boost::is_any_of(", "))

2022-07-05 Thread Phil Endecott via Boost-users
Hi Dominique, Dominique Pelle wrote: This following program shows many allocations coming from boost::split(..., boost::is_any_of(",")): When using boost::is_any_of(","), there are 7 dynamic allocations per loop iteration whereas when using the lambda predicate, there are 0 dynamic allocation pe

[Boost-users] Embedded install paths in CMake files for Boost 1.79

2022-07-05 Thread Alex via Boost-users
Apologies if this is the wrong list. I tried boost-build but I'm not sure if my message was verified (I don't see it in the archive). I'm trying to make a build of Boost that includes the generated CMake files. For my case, I need to install the files to a staging area before packaging them up fo