Skip to content

Commit 1f654b3

Browse files
committed
Allocator support for std::variant
1 parent 6b468a4 commit 1f654b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hdr/sqlite_modern_cpp/utility/variant.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ namespace sqlite::utility {
159159
struct VariantFirstBlobable<std::unique_ptr<T>, Options...> {
160160
using type = std::conditional_t<std::is_same_v<typename VariantFirstBlobable<T, Options...>::type, T>, std::unique_ptr<T>, typename VariantFirstBlobable<Options...>::type>;
161161
};
162-
template<typename T, typename ...Options>
163-
struct VariantFirstBlobable<std::enable_if_t<std::is_pod_v<T>>, std::vector<T>, Options...> {
164-
using type = std::vector<T>;
162+
template<typename T, typename A, typename ...Options>
163+
struct VariantFirstBlobable<std::enable_if_t<std::is_pod_v<T>>, std::vector<T, A>, Options...> {
164+
using type = std::vector<T, A>;
165165
};
166166
template<typename Callback, typename ...Options>
167167
inline auto variant_select_blob(Callback&&callback) {

0 commit comments

Comments
 (0)