Skip to content

Commit 31cc38b

Browse files
committed
add inline to the macro
Signed-off-by: Junwang Zhao <[email protected]>
1 parent 22adecf commit 31cc38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iceberg/result.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ using Status = Result<void>;
6464
/// \brief Macro to define error creation functions
6565
#define DEFINE_ERROR_FUNCTION(name) \
6666
template <typename... Args> \
67-
auto name(const std::format_string<Args...> fmt, Args&&... args) \
67+
inline auto name(const std::format_string<Args...> fmt, Args&&... args) \
6868
-> unexpected<Error> { \
6969
return unexpected<Error>( \
7070
{ErrorKind::k##name, std::format(fmt, std::forward<Args>(args)...)}); \

0 commit comments

Comments
 (0)