Skip to content

Commit

Permalink
use references (fix bug in debug) ;D
Browse files Browse the repository at this point in the history
  • Loading branch information
jgsogo committed Jul 26, 2016
1 parent e1168c5 commit ac9c188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion queryset/_impl/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace qs {
struct utils_queryset {
typedef typename std::vector<Type> type;
static const std::tuple<Args...>& as_tuple(const Type& item) {
return static_cast<std::tuple<Args...>>(item);
return static_cast<std::tuple<Args...>&>(item);
};
};

Expand Down
2 changes: 1 addition & 1 deletion queryset/models/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace qs {
return std::get<0>(_data);
}

operator tuple() const {
operator tuple&() const {
return _data;
}

Expand Down

0 comments on commit ac9c188

Please sign in to comment.