Boost logo

Boost Users :

Subject: [Boost-users] Fw: Boost-users Digest, Vol 4543, Issue 1
From: David Frank (david_frank56_at_[hidden])
Date: 2016-08-24 17:03:29


Thanks Daniel. I go the following errors and some segmentation fault. Is there any additional option to set:?
...skipped <pstage/lib>libboost_wave.so.1.61.0 for lack of <pbin.v2/libs/wave/build/clang-linux-3.6.2/release/threading-multi>libboost_wave.so.1.61.0...
...skipped <pstage/lib>libboost_wave.so for lack of <pstage/lib>libboost_wave.so.1.61.0...
...failed updating 518 targets...
...skipped 170 targets...
...updated 432 targets...

     On Wednesday, August 24, 2016 12:40 PM, David Frank <david_frank56_at_[hidden]> wrote:
 

 

     On Wednesday, August 24, 2016 12:00 PM, "boost-users-request_at_[hidden]" <boost-users-request_at_[hidden]> wrote:
 

 Send Boost-users mailing list submissions to
    boost-users_at_[hidden]

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.boost.org/mailman/listinfo.cgi/boost-users
or, via email, send a message with subject or body 'help' to
    boost-users-request_at_[hidden]

You can reach the person managing the list at
    boost-users-owner_at_[hidden]

When 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_at_[hidden]>
To: "boost-users_at_[hidden]" <boost-users_at_[hidden]>
Subject: [Boost-users] compile boost and boost application with CLANG
    compiler
Message-ID: <14791342.1048154.1471975602912_at_[hidden]>
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_at_[hidden]>
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] compile boost and boost application with
    CLANG compiler
Message-ID: <57BC9304.4090506_at_[hidden]>
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_at_[hidden]
> 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_at_[hidden]>
To: boost-users_at_[hidden]
Subject: [Boost-users] [Boost.Hana] how to merge two or more maps
Message-ID: <1056a9c4-93d5-15e7-c311-963487c3f505_at_[hidden]>
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_at_[hidden]>
To: boost-users_at_[hidden]
Subject: [Boost-users] [test] Init framework before dataset generation
Message-ID: <npjuv0$20e$1_at_[hidden]>
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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users

------------------------------

End of Boost-users Digest, Vol 4543, Issue 1
********************************************

   

   



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net