Viewing profile — cubbimew
cubbimew
HN member- Joined
- Sat, Jan 18, 2014, 3:47 AM UTC
- HN karma
- 7
- Public activity
- 6 items
- HN profile
- View on Hacker News ↗
About cubbimew
Recent public activity
-
comment
Comment #9591760
The number of copy/move constructors is zero, by the way, it's not hard (well, could be one if you're using 1980s compilers)
-
comment
Comment #9536535
In my recollection, smart pointers were a fairly common C++ idiom in the early 1990s. Ref-counted shared_ptr and scoped_ptr were even proposed in 1994 for standardization, but didn…
-
comment
Comment #8791428
How is the reference for a library abandoned over 15 years ago even relevant? (other than when researching history)
-
comment
Comment #8202709
The guide that's publicly available says "If your class needs to be copyable, prefer providing a copy method, such as CopyFrom() or Clone(), rather than a copy constructor" I think…
-
comment
Comment #8202158
> either people prefer both or prefer neither. exceptions (specifically, exceptions from constructors) are part of what RAII is , so it's only natural that people "prefer both". As…
-
comment
Comment #7565406
It doesn't get any worse than that guide (except maybe EC++ or the FQA). No RAII, no class invariants, no value semantics, no streams, no operators (which means no custom Iterators…