From 75da10d934f43c14a5736b61003eaca489831f90 Mon Sep 17 00:00:00 2001 From: Petr Pavlu Date: Mon, 13 Mar 2017 20:45:40 +0000 Subject: [PATCH] Revert "Work around non-working std::to_string() on SmartOS" This reverts commit 731cc7e55f01342eda26728698fb23f2b43563b6. --- cppconsui/tree.hh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/cppconsui/tree.hh b/cppconsui/tree.hh index 0ce36bd..b44768f 100644 --- a/cppconsui/tree.hh +++ b/cppconsui/tree.hh @@ -34,16 +34,8 @@ #include #include #include - -// CenterIM 5: Workaround for non-working std::to_string() on SmartOS. #include -#include -namespace patch { -template std::string to_string(const T& val) { - return dynamic_cast( - &(std::ostringstream() << val))->str(); -} -} // namespace patch + /// A node in the tree, combining links to other nodes as well as the actual data. template @@ -1610,9 +1602,9 @@ template iter tree::move_in_as_nth_child( while(true) { if(walk==0) throw std::range_error("tree: move_in_as_nth_child position " - +patch::to_string(n+1) + +std::to_string(n+1) +" out of range; only " - +patch::to_string(number_of_children(loc)) + +std::to_string(number_of_children(loc)) +" child nodes present"); if(n==0) break; -- 2.11.4.GIT