unique_ptr putVal(int val, unique_ptr place) { if - TopicsExpress



          

unique_ptr putVal(int val, unique_ptr place) { if (place == nullptr) { return unique_ptr(new CBst(val)); } else { place->insert(val); return place; } } VS (even 2013) compiles it. Intel compiler (havent checked gcc, but it should be the same) identified the problem with return place;. (Its not my code. Please dont force my to justify it :) )
Posted on: Fri, 25 Jul 2014 14:29:52 +0000

Trending Topics



Recently Viewed Topics




© 2015