Loading src/Debug/ConsoleLogger.h +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ public: #endif #else std::cerr << "In file " << cppFile << " at line " << line << " variable " << name << " has value of "; std::cerr << "== " << cppFile << " [[ " << line << " ]] <<< " << name << " >>> "; VariableExport::exportVariable(std::cerr, value); std::cerr << "\n"; #endif Loading src/Debug/VariableExport.h +4 −3 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ struct VariableExport { !std::is_same<T, bool>::value && !std::is_same<T, std::string>::value && !std::is_same<T, const char*>::value && !std::is_same<T, char*>::value && !std::is_same<T, const char>::value >::type { Loading Loading @@ -157,7 +158,7 @@ struct VariableExport { }; template<typename T,unsigned int Index, typename... Types> struct PrintClass <Traits<T, Types...>, Index, std::enable_if_t<Index < Traits<T, Types...>::size() - 1>>{ struct PrintClass <Traits<T, Types...>, Index, typename std::enable_if<Index < Traits<T, Types...>::size() - 1>::type>{ static void print(std::ostream& ost, const T &traitedClass){ ost << '"' << Traits<T, Types...>::template getName<Index>() << "\" : "; VariableExport::exportVariable(ost, Traits<T, Types...>::template getReference<Index>()->getValue(traitedClass)); Loading @@ -168,7 +169,7 @@ struct VariableExport { }; template<typename T,unsigned int Index, typename ... Types> struct PrintClass <Traits<T, Types...>, Index, std::enable_if_t<Index == Traits<T, Types...>::size() - 1>>{ struct PrintClass <Traits<T, Types...>, Index, typename std::enable_if<Index == Traits<T, Types...>::size() - 1>::type>{ static void print(std::ostream& ost, const T &traitedClass){ ost << '"' << Traits<T, Types...>::template getName<Traits<T, Types...>::size() - 1>() << "\" : "; VariableExport::exportVariable(ost, Traits<T, Types...>::template getReference<Traits<T, Types...>::size() - 1>()->getValue(traitedClass)); Loading @@ -176,7 +177,7 @@ struct VariableExport { }; template<typename T, unsigned int Index> struct PrintClass<T, Index, std::enable_if_t<Index == Traits<T>::ttype::size() - 1>>{ struct PrintClass<T, Index, typename std::enable_if<Index == Traits<T>::ttype::size() - 1>::type>{ static void print(std::ostream& ost, const T &traitedClass){ ost << '"' << Traits<T>::ttype::template getName<Traits<T>::ttype::size() - 1>() << "\" : "; VariableExport::exportVariable(ost, Traits<T>::ttype::template getReference<Traits<T>::ttype::size() - 1>()->getValue(traitedClass)); Loading src/Traits/Traits.h +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ template<typename Class, typename...Types> class Traits { public: template <unsigned int Index> using type = std::tuple_element_t<Index,std::tuple<Types...>>; using type = typename std::tuple_element<Index,std::tuple<Types...>>::type; private: template<unsigned int Index = sizeof...(Types) - 1, typename Dummy = void> struct MemRefs: public MemRefs<Index - 1> { Loading Loading
src/Debug/ConsoleLogger.h +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ public: #endif #else std::cerr << "In file " << cppFile << " at line " << line << " variable " << name << " has value of "; std::cerr << "== " << cppFile << " [[ " << line << " ]] <<< " << name << " >>> "; VariableExport::exportVariable(std::cerr, value); std::cerr << "\n"; #endif Loading
src/Debug/VariableExport.h +4 −3 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ struct VariableExport { !std::is_same<T, bool>::value && !std::is_same<T, std::string>::value && !std::is_same<T, const char*>::value && !std::is_same<T, char*>::value && !std::is_same<T, const char>::value >::type { Loading Loading @@ -157,7 +158,7 @@ struct VariableExport { }; template<typename T,unsigned int Index, typename... Types> struct PrintClass <Traits<T, Types...>, Index, std::enable_if_t<Index < Traits<T, Types...>::size() - 1>>{ struct PrintClass <Traits<T, Types...>, Index, typename std::enable_if<Index < Traits<T, Types...>::size() - 1>::type>{ static void print(std::ostream& ost, const T &traitedClass){ ost << '"' << Traits<T, Types...>::template getName<Index>() << "\" : "; VariableExport::exportVariable(ost, Traits<T, Types...>::template getReference<Index>()->getValue(traitedClass)); Loading @@ -168,7 +169,7 @@ struct VariableExport { }; template<typename T,unsigned int Index, typename ... Types> struct PrintClass <Traits<T, Types...>, Index, std::enable_if_t<Index == Traits<T, Types...>::size() - 1>>{ struct PrintClass <Traits<T, Types...>, Index, typename std::enable_if<Index == Traits<T, Types...>::size() - 1>::type>{ static void print(std::ostream& ost, const T &traitedClass){ ost << '"' << Traits<T, Types...>::template getName<Traits<T, Types...>::size() - 1>() << "\" : "; VariableExport::exportVariable(ost, Traits<T, Types...>::template getReference<Traits<T, Types...>::size() - 1>()->getValue(traitedClass)); Loading @@ -176,7 +177,7 @@ struct VariableExport { }; template<typename T, unsigned int Index> struct PrintClass<T, Index, std::enable_if_t<Index == Traits<T>::ttype::size() - 1>>{ struct PrintClass<T, Index, typename std::enable_if<Index == Traits<T>::ttype::size() - 1>::type>{ static void print(std::ostream& ost, const T &traitedClass){ ost << '"' << Traits<T>::ttype::template getName<Traits<T>::ttype::size() - 1>() << "\" : "; VariableExport::exportVariable(ost, Traits<T>::ttype::template getReference<Traits<T>::ttype::size() - 1>()->getValue(traitedClass)); Loading
src/Traits/Traits.h +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ template<typename Class, typename...Types> class Traits { public: template <unsigned int Index> using type = std::tuple_element_t<Index,std::tuple<Types...>>; using type = typename std::tuple_element<Index,std::tuple<Types...>>::type; private: template<unsigned int Index = sizeof...(Types) - 1, typename Dummy = void> struct MemRefs: public MemRefs<Index - 1> { Loading