comment out useless tuple_printer
This commit is contained in:
parent
c8c8987174
commit
ccb6bbed7c
1 changed files with 26 additions and 24 deletions
|
|
@ -25,31 +25,33 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
template<typename Type, unsigned N, unsigned Last>
|
|
||||||
struct tuple_printer {
|
|
||||||
|
|
||||||
static void print(std::ostream& out, const Type& value) {
|
// In case you want to debug arguments captured in tuples:
|
||||||
out << std::get<N>(value) << ", ";
|
// template<typename Type, unsigned N, unsigned Last>
|
||||||
tuple_printer<Type, N + 1, Last>::print(out, value);
|
// struct tuple_printer {
|
||||||
}
|
//
|
||||||
};
|
// static void print(std::ostream& out, const Type& value) {
|
||||||
|
// out << std::get<N>(value) << ", ";
|
||||||
template<typename Type, unsigned N>
|
// tuple_printer<Type, N + 1, Last>::print(out, value);
|
||||||
struct tuple_printer<Type, N, N> {
|
// }
|
||||||
|
// };
|
||||||
static void print(std::ostream& out, const Type& value) {
|
//
|
||||||
out << std::get<N>(value);
|
// template<typename Type, unsigned N>
|
||||||
}
|
// struct tuple_printer<Type, N, N> {
|
||||||
|
//
|
||||||
};
|
// static void print(std::ostream& out, const Type& value) {
|
||||||
|
// out << std::get<N>(value);
|
||||||
template<typename... Types>
|
// }
|
||||||
std::ostream& operator<<(std::ostream& out, const std::tuple<Types...>& value) {
|
//
|
||||||
out << "(";
|
// };
|
||||||
tuple_printer<std::tuple<Types...>, 0, sizeof...(Types) - 1>::print(out, value);
|
//
|
||||||
out << ")";
|
// template<typename... Types>
|
||||||
return out;
|
// std::ostream& operator<<(std::ostream& out, const std::tuple<Types...>& value) {
|
||||||
}
|
// out << "(";
|
||||||
|
// tuple_printer<std::tuple<Types...>, 0, sizeof...(Types) - 1>::print(out, value);
|
||||||
|
// out << ")";
|
||||||
|
// return out;
|
||||||
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup Foundry Tools for automatic algorithms assembling, selection and search.
|
* @defgroup Foundry Tools for automatic algorithms assembling, selection and search.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue