Skip to content

Commit 64f5f66

Browse files
committed
Function definitions back to std::string
1 parent 080411a commit 64f5f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hdr/sqlite_modern_cpp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ namespace sqlite {
407407
}
408408

409409
template <typename Function>
410-
void define(const STR_REF &name, Function&& func) {
410+
void define(const std::string &name, Function&& func) {
411411
typedef utility::function_traits<Function> traits;
412412

413413
auto funcPtr = new auto(std::forward<Function>(func));
@@ -421,7 +421,7 @@ namespace sqlite {
421421
}
422422

423423
template <typename StepFunction, typename FinalFunction>
424-
void define(const STR_REF &name, StepFunction&& step, FinalFunction&& final) {
424+
void define(const std::string &name, StepFunction&& step, FinalFunction&& final) {
425425
typedef utility::function_traits<StepFunction> traits;
426426
using ContextType = typename std::remove_reference<typename traits::template argument<0>>::type;
427427

0 commit comments

Comments
 (0)