Boost logo

Boost :

Subject: Re: [boost] [test] crash with the following test
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2010-09-28 14:50:59


On Tue, Sep 28, 2010 at 3:33 PM, Jürgen Hunold <juergen.hunold_at_[hidden]> wrote:
> Hi Felipe,
>
> On Tuesday, 28. September 2010 20:00:15 Felipe Magno de Almeida wrote:
>> > Please provide more information. A backtrace is better, a compileable
>> > test best. Some archive I can unpack and run "bjam" on, the very best
>> > ;-))
>>
>> Attached a Jamroot and test.cpp that shows the problem.
>
> Thanks.

> or changing test1.cpp to #include the library header only:
>
> //#include <boost/test/included/unit_test.hpp>
> #include <boost/test/unit_test.hpp>
>
> will fix this. Otherwise, you get _serious_ UB.

Thanks. I wasn't aware that the included directory was meant as a
header-only version of the library. I wrongly assumed it was like
fusion uses the include directory, as some way to flatten the include
hierarchy.

> Yours,
>
> Jürgen
> --
> * Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für
> * voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH
> * fax  : ++49 511 262926 99       ! Lister Straße 15
> * juergen.hunold_at_[hidden]        ! www.ivembh.de
> *
> * Geschäftsführer:                ! Sitz des Unternehmens: Hannover
> * Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
> * PD Dr.-Ing. Alfons Radtke       !

Thank you very much,

-- 
Felipe Magno de Almeida

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk