Skip to content

Commit 0212c56

Browse files
committed
Updated pointer passing example
1 parent 754710e commit 0212c56

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/pointer_passing_interface.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ int main() {
112112
size_t idx = min<size_t>(errorCategory, ecat_map.size());
113113
const error_category* ecat = idx != ecat_map.size() ? &get<const error_category&>(ecat_map[idx]) : nullptr;
114114
#ifdef SQLITE_ORM_WITH_CPP20_ALIASES
115-
return statically_bindable_pointer<ecat_pointer_tag>(ecat);
115+
return bind_pointer_statically<ecat_pointer_tag>(ecat);
116116
#else
117-
return statically_bindable_pointer<ecat_pointer_type>(ecat);
117+
return bind_pointer_statically<ecat_pointer_type>(ecat);
118118
#endif
119119
}
120120

@@ -168,7 +168,7 @@ int main() {
168168
error_code* ec = idx != ecat_map.size()
169169
? new error_code{errorValue, get<const error_category&>(ecat_map[idx])}
170170
: nullptr;
171-
return bindable_pointer<ecode_binding>(ec, default_delete<error_code>{});
171+
return bind_pointer<ecode_binding>(ec, default_delete<error_code>{});
172172
}
173173

174174
static constexpr const char* name() {
@@ -232,9 +232,9 @@ int main() {
232232
as<str_alias<'e', 'q'>>(func<equal_error_code_fn>(
233233
func<make_error_code_fn>(&Result::errorValue, &Result::errorCategory),
234234
#ifdef SQLITE_ORM_WITH_CPP20_ALIASES
235-
bindable_pointer<ecode_pointer_tag>(make_unique<error_code>()))),
235+
bind_pointer<ecode_pointer_tag>(make_unique<error_code>()))),
236236
#else
237-
bindable_pointer<ecode_pointer_type>(make_unique<error_code>()))),
237+
bind_pointer<ecode_pointer_type>(make_unique<error_code>()))),
238238
#endif
239239
func<error_category_name_fn>(func<get_error_category_fn>(&Result::errorCategory)),
240240
func<error_category_message_fn>(func<get_error_category_fn>(&Result::errorCategory),

0 commit comments

Comments
 (0)