12345678910111213141516171819 |
- $OpenBSD: patch-v2cc_v2cc-util_h,v 1.1 2017/06/03 14:25:16 espie Exp $
- C++11 ambiguity
- Index: v2cc/v2cc-util.h
- --- v2cc/v2cc-util.h.orig
- +++ v2cc/v2cc-util.h
- @@ -448,9 +448,9 @@ emit_posinfo(pIIR_PosInfo pi, string &str, pIIR_PosInf
-
- pIIR_PosInfo_TextFile pit = pIIR_PosInfo_TextFile(pi);
- // Emit line number and file name
- - str += "#line " + to_string(pit->line_number);
- + str += "#line " + ::to_string(pit->line_number);
- if (last_pos == NO_SOURCE_LINE)
- - str += " \"" + to_string(pit->file_name) + "\"\n";
- + str += " \"" + ::to_string(pit->file_name) + "\"\n";
- else
- str += "\n";
-
|