From 0fdd68c9e963f9e18a8dcc6ef990ccea98f4d764 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 5 Sep 2016 19:24:46 +0200 Subject: Fixes an infinite recursion. --- binparse/output.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binparse/output.hpp b/binparse/output.hpp index 4d17175..2cf9f63 100644 --- a/binparse/output.hpp +++ b/binparse/output.hpp @@ -114,7 +114,7 @@ std::ostream& output_impl(std::ostream& os, T const& t, indices) } -template ::value>::type*> +template ::value>::type* = nullptr> std::ostream& operator<<(otreestream& os, T const& t) { typedef typename build_indices::value>::type indices; @@ -125,7 +125,7 @@ std::ostream& operator<<(otreestream& os, T const& t) { return os; } -template ::value>::type*> +template ::value>::type* = nullptr> std::ostream& operator<<(std::ostream& os, T const& t) { typedef typename build_indices::value>::type indices; -- cgit v1.2.3-70-g09d2