Skip to content

Commit

Permalink
This probably still has the warning,
Browse files Browse the repository at this point in the history
We probably have to silence the warning etc.
  • Loading branch information
joka921 committed Jun 20, 2024
1 parent ab045f7 commit fd5880f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ struct LiteralFromIdGetter : Mixin<LiteralFromIdGetter> {
struct RegexValueGetter {
template <SingleExpressionResult S>
requires std::invocable<StringValueGetter, S&&, const EvaluationContext*>
std::shared_ptr<re2::RE2> operator()(S&& input,
std::unique_ptr<re2::RE2> operator()(S&& input,
const EvaluationContext* context) const {
auto str = StringValueGetter{}(AD_FWD(input), context);
if (!str.has_value()) {
Expand Down
1 change: 1 addition & 0 deletions src/util/Forward.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
/// A simple macro that allows writing `AD_FWD(x)` instead of
/// `std::forward<decltype(x)>(x)`.
#define AD_FWD(x) std::forward<decltype(x)>(x)

#endif // QLEVER_FORWARD_H

0 comments on commit fd5880f

Please sign in to comment.