Skip to content

Instantly share code, notes, and snippets.

@esprehn
Created September 6, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esprehn/754787730025ea329559c7e5abbe7b1b to your computer and use it in GitHub Desktop.
Save esprehn/754787730025ea329559c7e5abbe7b1b to your computer and use it in GitHub Desktop.
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:272:42: error: no matching constructor for initialization of 'StringTypeAdapter<const char *const>'
StringTypeAdapter<const StringType1> adapter1(string1);
^ ~~~~~~~
../../third_party/WebKit/Source/wtf/text/StringOperators.h:40:23: note: in instantiation of function template specialization 'WTF::makeString<const char *, WTF::String>' requested here
return String(makeString(m_string1, m_string2));
^
../../third_party/WebKit/Source/core/clipboard/DataTransferItemList.cpp:82:61: note: in instantiation of member function 'WTF::StringAppend<const char *, const WTF::String>::operator String' requested here
exceptionState.throwDOMException(NotSupportedError, "An item already exists for type '" + type + "'.");
^
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:47:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char *const' to 'const WTF::StringTypeAdapter<const char *const>' for 1st argument
class StringTypeAdapter {
^
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:47:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const char *const' to 'WTF::StringTypeAdapter<const char *const>' for 1st argument
class StringTypeAdapter {
^
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:47:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:273:42: error: no matching constructor for initialization of 'StringTypeAdapter<const char *const>'
StringTypeAdapter<const StringType2> adapter2(string2);
^ ~~~~~~~
../../third_party/WebKit/Source/wtf/text/StringOperators.h:40:23: note: in instantiation of function template specialization 'WTF::makeString<WTF::String, const char *>' requested here
return String(makeString(m_string1, m_string2));
^
../../third_party/WebKit/Source/core/clipboard/DataTransferItemList.cpp:82:61: note: in instantiation of member function 'WTF::StringAppend<const WTF::String, const char *const>::operator String' requested here
exceptionState.throwDOMException(NotSupportedError, "An item already exists for type '" + type + "'.");
^
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:47:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char *const' to 'const WTF::StringTypeAdapter<const char *const>' for 1st argument
class StringTypeAdapter {
^
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:47:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const char *const' to 'WTF::StringTypeAdapter<const char *const>' for 1st argument
class StringTypeAdapter {
^
../../third_party/WebKit/Source/wtf/text/StringConcatenate.h:47:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
2 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment