diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-08-24 20:59:06 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-08-24 20:59:26 -0400 |
commit | 3f726c99f819f97f2ab21b94d34c6b3129cd883a (patch) | |
tree | 9e61c87b4dbd57ed031140a909cf3fbea01cb5a6 /src/test | |
parent | 77fc469fc78cdd87c29f398d46ac58dbb9ef62c0 (diff) | |
parent | f1708ef89a38efe857daeb4252c6dfab5b7c258e (diff) |
Merge #11112: [developer-notes] By default, declare single-argument constructors "explicit"
f1708ef89 Add recommendation: By default, declare single-argument constructors `explicit` (practicalswift)
Pull request description:
This is a follow-up to the now merged #10969.
Add recommendation:
> By default, declare single-argument constructors `explicit`.
>
> - *Rationale*: This is a precaution to avoid unintended conversions that might arise when single-argument constructors are used as implicit conversion functions.
>
Tree-SHA512: 1ceb1008a7863ebd0f09ba9c06b4e28b3b03265d7381f9d0c8bd4be1663d5d0392de0ecd811027aa27c0d962723674b245b3c165a437942a776f3525db39d36b
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/addrman_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp index 2ad22d34ad..7be29c6d6b 100644 --- a/src/test/addrman_tests.cpp +++ b/src/test/addrman_tests.cpp @@ -15,7 +15,7 @@ class CAddrManTest : public CAddrMan uint64_t state; public: - CAddrManTest(bool makeDeterministic = true) + explicit CAddrManTest(bool makeDeterministic = true) { state = 1; |