Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit ec85c2c

Browse files
committed
prevent ResultError being instantiated by the user
1 parent b95b00a commit ec85c2c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

include/common/result.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class ResultError {
2424
std::chrono::time_point<std::chrono::system_clock> time;
2525
};
2626

27+
std::optional<RuntimeData> runtime_data;
28+
29+
protected:
2730
/**
2831
* @brief Construct a new ResultError object.
2932
*
@@ -37,8 +40,6 @@ class ResultError {
3740
};
3841
}
3942
}
40-
41-
std::optional<RuntimeData> runtime_data;
4243
};
4344

4445
namespace traits {

0 commit comments

Comments
 (0)