Send Boost-users mailing list submissions to
boost-users@lists.boost.orgTo subscribe or unsubscribe via the World Wide Web, visit
http://lists.boost.org/mailman/listinfo.cgi/boost-usersor, via email, send a message with subject or body 'help' to
boost-users-request@lists.boost.orgYou can reach the person managing the list at
boost-users-owner@lists.boost.orgWhen replying, please edit your Subject line so it is more specific
than "Re: Contents of Boost-users digest..."
Today's Topics:
1. compile boost and boost application with CLANG compiler
(David Frank)
2. Re: compile boost and boost application with CLANG compiler
(Daniel Hofmann)
3. [Boost.Hana] how to merge two or more maps (Matthijs M?hlmann)
4. [test] Init framework before dataset generation (Florian Lindner)
----------------------------------------------------------------------
Message: 1
Date: Tue, 23 Aug 2016 18:06:42 +0000 (UTC)
From: David Frank <
david_frank56@yahoo.com>
To: "
boost-users@lists.boost.org" <
boost-users@lists.boost.org>
Subject: [Boost-users] compile boost and boost application with CLANG
compiler
Message-ID: <
14791342.1048154.1471975602912@mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"
Has anyone successfully compiled boost and application with boost with CLANG compiler?If yes, would you mind sharing the steps?
-------------- next part --------------
HTML attachment scrubbed and removed
------------------------------
Message: 2
Date: Tue, 23 Aug 2016 20:16:36 +0200
From: Daniel Hofmann <
daniel@trvx.org>
To:
boost-users@lists.boost.orgSubject: Re: [Boost-users] compile boost and boost application with
CLANG compiler
Message-ID: <
57BC9304.4090506@trvx.org>
Content-Type: text/plain; charset=windows-1252
Sure, follow the Boost compilation docs and set your toolset to clang.
Here's an example invocation that should get you started:
./bootstrap.sh --with-toolset=clang --prefix=${where}
./b2 -j $(nproc) toolset=clang cxxflags="-std=c++11 -stdlib=libc++"
linkflags="-stdlib=libc++"
./b2 install --prefix=${where}
You may want to remove the libc++ flags if you want to build against
libstdc++ instead.
On 08/23/2016 08:06 PM, David Frank wrote:
> Has anyone successfully compiled boost and application with boost with
> CLANG compiler?
> If yes, would you mind sharing the steps?
>
>
> _______________________________________________
> Boost-users mailing list
>
Boost-users@lists.boost.org>
http://lists.boost.org/mailman/listinfo.cgi/boost-users>
------------------------------
Message: 3
Date: Wed, 24 Aug 2016 12:02:17 +0200
From: Matthijs M?hlmann <
matthijs@cacholong.nl>
To:
boost-users@lists.boost.orgSubject: [Boost-users] [Boost.Hana] how to merge two or more maps
Message-ID: <
1056a9c4-93d5-15e7-c311-963487c3f505@cacholong.nl>
Content-Type: text/plain; charset=utf-8
Hi,
I am looking into the documentation of hana to merge two or more maps, say:
#include <boost/hana.hpp>
namespace hana = boost::hana;
int main(int argc, char **argv) {
constexpr auto m1 = hana::make_map(
hana::make_pair("key1"_s, hana::type_c<std::string>),
hana::make_pair("key2"_s, hana::type_c<std::string>)
);
constexpr auto m2 = hana::make_map(
hana::make_pair("key3"_s, hana::type_c<std::string>),
hana::make_pair("key4"_s, hana::type_c<std::string>),
hana::make_pair("key5"_s, hana::type_c<std::string>)
);
// Merge two or more maps?
constexpr auto result = m1 + m2;
return 0;
}
I'm not sure how to do this, probably taking the first map and for every
pair in the subsequent map return an insert? In pseudo code:
constexpr result = hana::insert(hana::insert(m1, pair1), pair2);
Can someone give me some pointers in the right direction?
Regards, Matthijs
------------------------------
Message: 4
Date: Wed, 24 Aug 2016 13:04:00 +0200
From: Florian Lindner <
mailinglists@xgm.de>
To:
boost-users@lists.boost.orgSubject: [Boost-users] [test] Init framework before dataset generation
Message-ID: <npjuv0$20e$
1@blaine.gmane.org>
Content-Type: text/plain; charset=utf-8
Hello,
I try to use boost test with data test cases:
std::vector<float> fibonacci() {
std::cout << "Data Set" << std::endl;
[...]
}
BOOST_DATA_TEST_CASE(datatest, boost::unit_test::data::make(fibonacci()), mapping)
{
std::cout << "Datatype" << typeid(mapping).name() << std::endl;
}
The problem of that is, that fibonacci is initialized before anything else. The order of initializations is:
Data Set
main
init_unit_test
Global Fixture
That works fine here, but my fibonacci uses MPI which needs to initialized by MPI_Init. I want to do that initialization in the global fixture or int main or init_unit_tests, once for the entire test runner.
Is there anything I can do about that and belay initialization of Data Set after one of the others?
Thanks,
Florian
------------------------------
Subject: Digest Footer
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.orghttp://lists.boost.org/mailman/listinfo.cgi/boost-users------------------------------
End of Boost-users Digest, Vol 4543, Issue 1
********************************************