diff --git a/testApp/testdbf_copy.cpp b/testApp/testdbf_copy.cpp index 3aa5202..599e63b 100644 --- a/testApp/testdbf_copy.cpp +++ b/testApp/testdbf_copy.cpp @@ -119,13 +119,12 @@ void testPVD2DBR_array() } } -template -void testDBR2PVD_scalar(typename pvd::meta::arg_type::type>::type input, - typename pvd::meta::arg_type::type>::type expect) +template +void testDBR2PVD_scalar(const input_t& input, + const output_t& expect) { - typedef typename pvd::ScalarTypeTraits::type input_t; - typedef typename pvd::ScalarTypeTraits::type output_t; - + pvd::ScalarType IN = (pvd::ScalarType)pvd::ScalarTypeID::value, + OUT = (pvd::ScalarType)pvd::ScalarTypeID::value; testDiag("testDBR2PVD_scalar(%s, %s)", pvd::ScalarTypeFunc::name(IN), pvd::ScalarTypeFunc::name(OUT)); pvd::PVStructure::shared_pointer top(pvd::getPVDataCreate()->createPVStructure(pvd::getFieldCreate()->createFieldBuilder() @@ -251,12 +250,12 @@ MAIN(testdbf_copy) testPVD2DBR_array(); - testDBR2PVD_scalar(42.2, 42.2); - testDBR2PVD_scalar(42u, 42.0); - testDBR2PVD_scalar(-41, -41); - testDBR2PVD_scalar("-41", -41); - testDBR2PVD_scalar("hello", "hello"); - testDBR2PVD_scalar(-42, "-42"); + testDBR2PVD_scalar(42.2, 42.2); + testDBR2PVD_scalar(42u, 42.0); + testDBR2PVD_scalar(-41, -41); + testDBR2PVD_scalar("-41", -41); + testDBR2PVD_scalar("hello", "hello"); + testDBR2PVD_scalar(-42, "-42"); testDBR2PVD_enum(2, 2); testDBR2PVD_enum("two", 2);