patch-v2cc_v2cc-util_h 612 B

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