Comment #6 on issue 378 by [email protected]: Const Correctness for
String::Value
http://code.google.com/p/v8/issues/detail?id=378
I can't understand why the length methode should be non-const!
I know that the non-const operator* will be needed in some internal parts
of v8, but i think i might be
possible to add both methods:
class V8EXPORT Utf8Value {
public:
explicit Utf8Value(Handle<v8::Value> obj);
~Utf8Value();
char* operator*() { return str_; }
const char* operator*() const { return str_; }
int length() const { return length_; }
...
};
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---