Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

itt_notify.hpp: "ScopeTrack(track)" constructor not marked explicit #10

Open
sqz opened this issue May 24, 2017 · 0 comments
Open

itt_notify.hpp: "ScopeTrack(track)" constructor not marked explicit #10

sqz opened this issue May 24, 2017 · 0 comments

Comments

@sqz
Copy link

sqz commented May 24, 2017

Standard C++ issue: single argument constructors are almost always meant to be marked "explicit" in order to avoid unintended implicit conversions (https://www.securecoding.cert.org/confluence/pages/viewpage.action?pageId=3416). Any static analyser should pick this up too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants