Commit c7005971 authored by Tomáš Jakubec's avatar Tomáš Jakubec
Browse files

Standard requirements of debugger is c++11 now :)

parent 2c04adee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+4 −3
Original line number Diff line number Diff line
@@ -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
    {
@@ -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));
@@ -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));
@@ -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));
+1 −1
Original line number Diff line number Diff line
@@ -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> {