Skip to content

Commit

Permalink
Reused alias template type in primary key constructor again
Browse files Browse the repository at this point in the history
  • Loading branch information
trueqbit committed Oct 24, 2023
1 parent e868539 commit 87cee49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/constraints.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace sqlite_orm {
return *this;
}
#ifndef SQLITE_ORM_AGGREGATE_BASES_SUPPORTED
primary_key_with_autoincrement(T primary_key) : T{primary_key} {}
primary_key_with_autoincrement(primary_key_type primary_key) : primary_key_type{primary_key} {}
#endif
};

Expand Down
2 changes: 1 addition & 1 deletion include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ namespace sqlite_orm {
return *this;
}
#ifndef SQLITE_ORM_AGGREGATE_BASES_SUPPORTED
primary_key_with_autoincrement(T primary_key) : T{primary_key} {}
primary_key_with_autoincrement(primary_key_type primary_key) : primary_key_type{primary_key} {}
#endif
};

Expand Down

0 comments on commit 87cee49

Please sign in to comment.