Skip to content

Commit 6f30c17

Browse files
[arccore,base] Corrige compilation avec Visual Studio 2017.
Avec Visual Studio 2017, si le constructeur utilise 'default' comme implémentation alors il n'est pas `constexpr`.
1 parent 3a753d9 commit 6f30c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arccore/src/base/arccore/base/StringView.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ARCCORE_BASE_EXPORT StringView
5353
public:
5454

5555
//! Crée une vue sur une chaîne vide
56-
constexpr StringView() ARCCORE_NOEXCEPT {}
56+
StringView() = default;
5757
//! Créé une vue à partir de \a str codé en UTF-8. \a str peut être nul.
5858
StringView(const char* str) ARCCORE_NOEXCEPT
5959
: StringView(str ? std::string_view(str) : std::string_view()){}

0 commit comments

Comments
 (0)