PeterSommerlad/UDLSuffixBoost — pull request #2 by viboes (2012-09-14 22:51:52+00:00)
Title: Boostify

* Change header files suffixes to .hpp to follow the boost rules (Sorry I don't know how to rename)

* Added bjam files to run the test and generate the doc with quickbook. Needs

```
export BOOST=
```

To run the test:

```
cd libs/suffixes/test
bjam
```

To generate the documentation:

```
cd libs/suffixes/doc
bjam
```
* libs/suffixes/test Tests updated to make use of . I don't know if the change of ASSERT_EQUAL by BOOST_TEST_EQ. If ASSERT_EQUAL is a static test, the change is not good, and should be replaced by a macro using static_assert.

* I have splited TestX into TestString/Chrono/Binay.

* I have yet an error on TestChrono with clang-3.1x:

$ bjam toolset=clang-3.1x -q
warning: mismatched versions of Boost.Build engine and core
warning: Boost.Build engine (bjam) is 2011.04.00
warning: Boost.Build core (at /Users/viboes/boost/trunk/tools/build/v2)
is 2011.12-svn
...patience...
...found 626 targets...
...updating 3 targets...
clang-darwin.link bin/TestChrono.test/clang-darwin-3.1x/debug/TestChrono
Undefined symbols for architecture x86_64:
"boost::suffixes::chrono::detail::select_type<5ull,
std::__1::chrono::duration >
>::value", referenced from:
__ZN5boost8suffixes6chronoli2_hIJLc53EEEENS1_6detail11select_typeIXsr6de
tail13base_dispatchIXspT_EEE5valueENSt3__16chrono8durationIlNS5_5ratioIL
l3600ELl1EEEEEE4typeEv in TestChrono.o
"boost::suffixes::chrono::detail::select_type<5ull,
std::__1::chrono::duration > >::value",
referenced from:
__ZN5boost8suffixes6chronoli4_minIJLc48ELc120ELc53EEEENS1_6detail11selec
t_typeIXsr6detail13base_dispatchIXspT_EEE5valueENSt3__16chrono8durationI
lNS5_5ratioILl60ELl1EEEEEE4typeEv in TestChrono.o
"boost::suffixes::chrono::detail::select_type<5ull,
std::__1::chrono::duration >
>::value", referenced from:
__ZN5boost8suffixes6chronoli2_sIJLc48ELc53EEEENS1_6detail11select_typeIX
sr6detail13base_dispatchIXspT_EEE5valueENSt3__16chrono8durationIxNS5_5ra
tioILl1ELl1EEEEEE4typeEv in TestChrono.o
"boost::suffixes::chrono::detail::select_type<5ull,
std::__1::chrono::duration >
>::value", referenced from:
__ZN5boost8suffixes6chronoli3_msIJLc53EEEENS1_6detail11select_typeIXsr6d
etail13base_dispatchIXspT_EEE5valueENSt3__16chrono8durationIxNS5_5ratioI
Ll1ELl1000EEEEEE4typeEv in TestChrono.o
"boost::suffixes::chrono::detail::select_type<5ull,
std::__1::chrono::duration >
>::value", referenced from:
__ZN5boost8suffixes6chronoli3_usIJLc53EEEENS1_6detail11select_typeIXsr6d
etail13base_dispatchIXspT_EEE5valueENSt3__16chrono8durationIxNS5_5ratioI
Ll1ELl1000000EEEEEE4typeEv in TestChrono.o
"boost::suffixes::chrono::detail::select_type<5ull,
std::__1::chrono::duration
> >::value", referenced from:
__ZN5boost8suffixes6chronoli3_nsIJLc53EEEENS1_6detail11select_typeIXsr6d
etail13base_dispatchIXspT_EEE5valueENSt3__16chrono8durationIxNS5_5ratioI
Ll1ELl1000000000EEEEEE4typeEv in TestChrono.o
"boost::suffixes::chrono::detail::select_type<18000ull,
std::__1::chrono::duration >
>::value", referenced from:
__ZN5boost8suffixes6chronoli2_sIJLc49ELc56ELc48ELc48ELc48EEEENS1_6detail
11select_typeIXsr6detail13base_dispatchIXspT_EEE5valueENSt3__16chrono8du
rationIxNS5_5ratioILl1ELl1EEEEEE4typeEv in TestChrono.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

"/Users/viboes/clang/clang+llvm-3.1-x86_64-apple-darwin11/bin/clang++"
-o "bin/TestChrono.test/clang-darwin-3.1x/debug/TestChrono"
"bin/TestChrono.test/clang-darwin-3.1x/debug/TestChrono.o" -g
-std=c++11 -stdlib=libc++

...failed clang-darwin.link
bin/TestChrono.test/clang-darwin-3.1x/debug/TestChrono...
...failed updating 1 target...