ssercpp12 / Homework

Homework result for 12 sser cpp
1 stars 8 forks source link

A question for bool Get(size_t index,const Value** out_value) const. #19

Open TchaikovDriver opened 11 years ago

TchaikovDriver commented 11 years ago

// Gets the Value at the given index. Modifies |out_value| (and returns true) // only if the index falls within the current list range. // Note that the list always owns the Value passed out via |out_value|. bool Get(size_t index, const Value* out_value) const; bool Get(size_t index, Value* out_value);

The first Get() has parameter "const Value\ out_value". How can I modify the content of a const pointer? It seems to be impossible....

TchaikovDriver commented 11 years ago

Oh I see

zhchbin commented 11 years ago

The same as #12 .

TchaikovDriver commented 11 years ago

@zhchbin I saw it just now,thx!