From dfd28f54743a2c35b302e8ff5b142dc84d9ee389 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 27 Jun 2018 15:23:18 -0700 Subject: [PATCH] attempt to placate MSVC Apparently suffer from template cleverness overload --- testApp/testdbf_copy.cpp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) 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);