quell cppcheck warnings for non-explicit constructor

- the implicit casts from std::string/char* is part of the design for
the view class so we do not want to disable those.
- intializer list constructors should be implicitly called
This commit is contained in:
Arne Morten Kvarving
2017-06-09 15:02:12 +02:00
parent 1eae9ed8c7
commit aa21cd8b13
3 changed files with 5 additions and 0 deletions

View File

@@ -52,8 +52,10 @@ namespace Opm {
inline string_view() = default;
inline string_view( const_iterator, const_iterator );
inline string_view( const_iterator, size_t );
//cppcheck-suppress noExplicitConstructor
inline string_view( const std::string& );
inline string_view( const std::string&, size_t );
//cppcheck-suppress noExplicitConstructor
inline string_view( const char* );
inline const_iterator begin() const;