On 05/12/2014 03:07 PM, Boris Zbarsky wrote:
So I'd like to propose that our C++ style require one-arg constructors to be marked explicit unless there's a clear comment explaining why the constructor is implicit.
I agree 100%, especially when we're talking about things that aren't value types (your example with pointers is an obvious non-value-type scenario).
With value types, it's not so much of an issue, although there are obviously performance implications there as well.
- Jim _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform