Advertisement
Guest User

chromium 31.0.1650.48 compile error

a guest
Nov 15th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.67 KB | None | 0 0
  1. In file included from ../../base/strings/safe_sprintf_unittest.cc:5:
  2. ../../base/strings/safe_sprintf.h:207:39: error: conversion from 'nullptr_t' to 'const internal::Arg' is ambiguous
  3.   const internal::Arg arg_array[] = { args... };
  4.                                       ^~~~
  5. ../../base/strings/safe_sprintf_unittest.cc:736:16: note: in instantiation of function template specialization 'base::strings::SafeSPrintf<40, nullptr_t>' requested here
  6.   EXPECT_EQ(1, SafeSPrintf(buf, "%d", NULL));
  7.                ^
  8. ../../testing/gtest/include/gtest/gtest.h:1930:33: note: expanded from macro 'EXPECT_EQ'
  9.                       expected, actual)
  10.                                 ^
  11. ../../testing/gtest/include/gtest/gtest_pred_impl.h:162:40: note: expanded from macro 'EXPECT_PRED_FORMAT2'
  12.   GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
  13.                                        ^
  14. ../../testing/gtest/include/gtest/gtest_pred_impl.h:147:43: note: expanded from macro 'GTEST_PRED_FORMAT2_'
  15.   GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
  16.                                           ^
  17. ../../testing/gtest/include/gtest/gtest_pred_impl.h:77:52: note: expanded from macro 'GTEST_ASSERT_'
  18.   if (const ::testing::AssertionResult gtest_ar = (expression)) \
  19.                                                    ^
  20. ../../base/strings/safe_sprintf.h:156:3: note: candidate constructor
  21.   Arg(const char* s) : str(s), type(STRING) { }
  22.   ^
  23. ../../base/strings/safe_sprintf.h:157:3: note: candidate constructor
  24.   Arg(char* s)       : str(s), type(STRING) { }
  25.   ^
  26. 1 error generated.
  27. [1426/10153] CXX obj/base/strings/base_unittests.string16_unittest.o
  28. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement