Commit a814e2b8 authored by Roland Levillain's avatar Roland Levillain
Browse files

Complete and clean up tests/metal/converts_to.cc.

	* tests/metal/converts_to.cc: Remove dead code and add new test
	cases.
parent 5d7fb449
2013-02-07 Roland Levillain <roland@lrde.epita.fr>
 
Complete and clean up tests/metal/converts_to.cc.
* tests/metal/converts_to.cc: Remove dead code and add new test
cases.
2013-02-06 Roland Levillain <roland@lrde.epita.fr>
Fix the generation of code excerpts for the documentation.
 
* doc/tools/split_sample.sh: Use $(...) instead of `...` so that
......@@ -76,6 +76,17 @@ int main()
metal::converts_to<accu::math::sum<int, int>, int>::check();
// metal::converts_to<derived, base_>::check_not();
// metal::converts_to<derived, const base_>::check_not();
metal::converts_to<from_1, float>::check_not();
metal::converts_to<base, derived>::check_not();
metal::converts_to<base_, derived>::check_not();
/* Unfortunately, we cannot perform the following checks, as they
trigger an error (*before* SFINAE comes into play) about base_'s
ctor(s) being protected:
metal::converts_to<derived, base_>::check_not();
metal::converts_to<derived, const base_>::check_not();
*/
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment