No viable conversion from var to StringRef


Hey Jules, just updated to the latest git and am have issues with implicit conversions using vars such as "Colour::fromString(varVal);".  Is it possible to get built in support for that or do I just change the code to work with strings explicitly?

Edit: Xcode 4.6.3, OSX 10.8.4


use .toString, because a var doesn't have to contain a string as datasource...


That's right - it'd be impossible to write this:

var::operator StringRef()  { return toString(); }

..because the String that toString returns would go out of scope when the function returns, and the resulting StringRef would contain a dangling pointer.


Right, of course..  thanks guys!