# Error Compiling with JUCE_STRING_UTF_TYPE=32

#1

Error 1 error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'juce::StringRef' (or there is no acceptable conversion) [...]\juce\modules\juce_core\network\juce_macaddress.cpp 75

Note that compiling with JUCE_STRING_UTF_TYPE=16 is fine.

#2

Thanks! We'll fix this soon :)

#3

Any plans for juce to be hooked up to a continuous integration system? Seems like this type of problem could have been caught way earlier on.

Travis CI is free: https://travis-ci.org/ .

#4

Yes, very definite plans for that! As soon as we've got this launch out of the way, it'll be top of our to-do-list!

#5

Fantastic! Looking forward to it!

#6

Should be fixed now, thanks again! :)

#7

This change has caused a problem with NewLine operator+ and using a const String…

Changing it to:

``````    if (bToLogFile)
Logger::writeToLog (String ("Some constant text") + newLine);
else
DBG (String ("Some constant text") + newLine);``````

lets me compile.

Using:

``````    if (bToLogFile)
Logger::writeToLog ("Some constant text" << newLine);     <<<----  This fails
else
DBG ("Some constant text" << newLine);  <<<---- this is okay``````

Rail

#8

TBH I'm a little surprised that it ever used to work!

#9

the comment in juce_NewLine.h kinda implies that it will…

``````/** Writes a new-line sequence to a string.
You can use the predefined object 'newLine' to invoke this, e.g.
@code
myString << "Hello World" << newLine << newLine;
@endcode
*/``````

Simple enough to fix in my code though.

Cheers,

Rail

#10

Yeah, I'd have expected << to work, but not +