Skip to content

Commit f6da16e

Browse files
authored
Merge pull request #38 from ecmwf/hotfix/1.6.1
Hotfix/1.6.1
2 parents 504874d + 68124b1 commit f6da16e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.0
1+
1.6.1

src/odc/core/CodecFactory.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <memory>
2020
#include <mutex>
2121
#include <string>
22+
#include <string_view>
2223
#include <cstdint>
2324

2425
#include "eckit/memory/NonCopyable.h"
@@ -90,7 +91,10 @@ template <template <typename> class CODEC>
9091
class CodecBuilder : public CodecBuilderBase {
9192

9293
#ifndef _CRAYC
93-
static_assert(CODEC<SameByteOrder>::codec_name() == CODEC<OtherByteOrder>::codec_name(), "Invalid name");
94+
static_assert(
95+
std::string_view(CODEC<SameByteOrder>::codec_name()) ==
96+
std::string_view(CODEC<OtherByteOrder>::codec_name()),
97+
"Invalid name");
9498
#endif
9599

96100
public: // methods

0 commit comments

Comments
 (0)