From 69f21e351315dd1fbc1bf23c27e35e125b409a77 Mon Sep 17 00:00:00 2001 From: John Farrier Date: Thu, 26 Apr 2018 22:30:26 -0400 Subject: [PATCH] Fixed ambiguous constructor error. (#262) --- src/stacktrace_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stacktrace_windows.cpp b/src/stacktrace_windows.cpp index cfdd69f..5c24794 100644 --- a/src/stacktrace_windows.cpp +++ b/src/stacktrace_windows.cpp @@ -120,7 +120,7 @@ namespace { std::string lineInformation; std::string callInformation; if (SymFromAddr(GetCurrentProcess(), addr, &displacement64, symbol)) { - callInformation.append(" ").append({symbol->Name, symbol->NameLen}); + callInformation.append(" ").append({std::string(symbol->Name), symbol->NameLen}); if (SymGetLineFromAddr64(GetCurrentProcess(), addr, &displacement, &line)) { lineInformation.append("\t").append(line.FileName).append(" L: "); lineInformation.append(std::to_string(line.LineNumber));