From 358f2ddb60be8f850c2df892ea0d42c9d82eb0e0 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 1 May 2015 02:43:27 +1000 Subject: [PATCH] tuple: test tuple mapping with template src types Added complexity in the test to help diagnose issues with the introspection code. --- test/tuple.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/tuple.cpp b/test/tuple.cpp index b1dcd054..b933d225 100644 --- a/test/tuple.cpp +++ b/test/tuple.cpp @@ -43,12 +43,9 @@ main () } { - using tuple_t = std::tuple; - using mapped_t = typename util::tuple::map::type; + using src_t = std::tuple; + using dst_t = typename util::tuple::map::type; - bool tuple = std::is_same::type, int>::value; - bool mapped = std::is_same::type, int>::value; - - tap.expect (!tuple && mapped, "tuple type mapping"); + tap.expect (std::is_same>::value, "tuple type mapping"); } }