* tests/metal/converts_to.cc: Remove dead code and add new test
cases.
---
milena/ChangeLog | 7 +++++++
milena/tests/metal/converts_to.cc | 15 +++++++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 8bb7b90..bae1003 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2013-02-07 Roland Levillain <roland(a)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(a)lrde.epita.fr>
+
Fix the generation of code excerpts for the documentation.
* doc/tools/split_sample.sh: Use $(...) instead of `...` so that
diff --git a/milena/tests/metal/converts_to.cc b/milena/tests/metal/converts_to.cc
index 68b20b9..064ffd3 100644
--- a/milena/tests/metal/converts_to.cc
+++ b/milena/tests/metal/converts_to.cc
@@ -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();
+ */
}
--
1.7.2.5
Show replies by date