Closed casallas closed 12 years ago
My quick-and-dirty workaround still generates a bunch of warnings like this one:
/Users/juan/dev/vr-jugglua/vrjugglua/LuaConsole.h:67:13: warning: reference to stack memory associated with local
variable 'luaOutProxy' returned
return luaOutProxy._stream;
^~~~~~~~~~~
I wonder if the same isn't happening in the original code? (Referencing temporary stack variable)
This was a half-baked feature that I really should probably actually remove.
Should be fixed by f154c29f39b07dccf5723a05a270e3fd26addf12 which removes said half-baked feature.
I get the following error when compiling vrjugglua with clang 3.0 on Mac OS X 10.6.8 (Snow Leopard):
This is the problematic line: https://github.com/vancegroup/vr-jugglua/blob/master/vrjugglua/LuaConsole.h#L66
Apparently clang can't convert from
LuaConsoleOutputProxy
to the referencestd::ostream &
.This is not detected on gcc 4.2.