From 9c63e102b05e11ead690489ca470c8482b6335b1 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Sat, 14 Mar 2015 10:30:01 +0300 Subject: [PATCH] fix args with :: --- pdebug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdebug.h b/pdebug.h index 5808102..999392a 100644 --- a/pdebug.h +++ b/pdebug.h @@ -28,7 +28,7 @@ inline const char *pDebug(const std::string prettyFunction) inline std::string pFuncInfo(const std::string prettyFunction) { - size_t colons = prettyFunction.find("::"); + size_t colons = prettyFunction.rfind("::"); // workaround for functions which are not belong to any class if (colons == std::string::npos) colons = prettyFunction.rfind("(");