We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ef8e8 commit 1c1e144Copy full SHA for 1c1e144
1 file changed
DataFormats/Headers/include/Headers/DataHeader.h
@@ -295,7 +295,8 @@ struct Descriptor {
295
296
/// get the descriptor as std::string
297
template <typename T>
298
- std::enable_if_t<std::is_same<T, std::string>::value == true, T> as() const
+ requires(std::same_as<T, std::string>)
299
+ T as() const
300
{
301
// backward search to find first non-zero char
302
// FIXME: can optimize this by using the int value to start at e.g. size/2
0 commit comments