@@ -88,19 +88,15 @@ namespace sqlite_orm {
8888
8989 template <class Opt , class OptionsTpl >
9090 decltype (auto ) storage_opt_or_default(OptionsTpl& options) {
91- #ifdef SQLITE_ORM_CTAD_SUPPORTED
9291 if constexpr (tuple_has_type<OptionsTpl, Opt>::value) {
9392 return std::move (std::get<Opt>(options));
9493 } else {
9594 return Opt{};
9695 }
97- #else
98- return Opt{};
99- #endif
10096 }
10197
10298 /* *
103- * Storage class itself. Create an instanse to use it as an interfacto to sqlite db by calling `make_storage`
99+ * Storage class itself. Create an instance to use it as an interfacto to sqlite db by calling `make_storage`
104100 * function.
105101 */
106102 template <class ... DBO>
@@ -1759,7 +1755,6 @@ namespace sqlite_orm {
17591755#endif // SQLITE_ORM_OPTIONAL_SUPPORTED
17601756 }; // struct storage_t
17611757
1762- #ifdef SQLITE_ORM_CTAD_SUPPORTED
17631758 template <class Elements >
17641759 using dbo_index_sequence = filter_tuple_sequence_t <Elements, check_if_lacks<storage_opt_tag_t >::template fn>;
17651760
@@ -1770,12 +1765,10 @@ namespace sqlite_orm {
17701765 storage_t <DBO...> make_storage (std::string filename, std::tuple<DBO...> dbObjects, OptionsTpl options) {
17711766 return {std::move (filename), std::move (dbObjects), std::move (options)};
17721767 }
1773- #endif
17741768 }
17751769}
17761770
17771771SQLITE_ORM_EXPORT namespace sqlite_orm {
1778- #ifdef SQLITE_ORM_CTAD_SUPPORTED
17791772 /*
17801773 * Factory function for a storage instance, from a database file, a set of database object definitions
17811774 * and option storage options like connection control options and an 'on open' callback.
@@ -1793,15 +1786,6 @@ SQLITE_ORM_EXPORT namespace sqlite_orm {
17931786 create_from_tuple<std::tuple>(std::move (specTuple), dbo_index_sequence<decltype (specTuple)>{}),
17941787 create_from_tuple<std::tuple>(std::move (specTuple), opt_index_sequence<decltype (specTuple)>{}));
17951788 }
1796- #else
1797- /*
1798- * Factory function for a storage instance, from a database file and a bunch of database object definitions.
1799- */
1800- template <class ... DBO>
1801- internal::storage_t <DBO...> make_storage (std::string filename, DBO... dbObjects) {
1802- return {std::move (filename), {std::forward<DBO>(dbObjects)...}, std::tuple<>{}};
1803- }
1804- #endif
18051789
18061790 /* *
18071791 * sqlite3_threadsafe() interface.
0 commit comments