0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Remove obsolete all_of_t

This was a wrapper used for the now-removed multi_column.
This commit is contained in:
Roland Bock 2021-09-04 11:04:51 +02:00
parent f6bbac09e1
commit 1e2fff0ca9
2 changed files with 2 additions and 30 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2013-2021, Roland Bock
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without modification, * Redistribution and use in source and binary forms, with or without modification,
@ -27,29 +27,13 @@
#ifndef SQLPP11_ALL_OF_H #ifndef SQLPP11_ALL_OF_H
#define SQLPP11_ALL_OF_H #define SQLPP11_ALL_OF_H
#include <sqlpp11/alias.h>
#include <sqlpp11/serialize.h>
#include <sqlpp11/portable_static_assert.h>
namespace sqlpp namespace sqlpp
{ {
template <typename Table> template <typename Table>
struct all_of_t auto all_of(Table /*unused*/) -> typename Table::_column_tuple_t
{
using _column_tuple_t = typename Table::_column_tuple_t;
};
template <typename Table>
auto all_of(Table /*unused*/) -> all_of_t<Table>
{ {
return {}; return {};
} }
SQLPP_PORTABLE_STATIC_ASSERT(assert_no_stand_alone_all_of_t, "all_of(table) seems to be used outside of select");
// FIXME: Do we need this?
template <typename Context, typename Table>
Context& serialize(const all_of_t<Table>& t, Context& context);
} // namespace sqlpp } // namespace sqlpp
#endif #endif

View File

@ -32,9 +32,6 @@
namespace sqlpp namespace sqlpp
{ {
template <typename Table>
struct all_of_t;
namespace detail namespace detail
{ {
template <typename T> template <typename T>
@ -46,15 +43,6 @@ namespace sqlpp
} }
}; };
template <typename T>
struct as_column_tuple<all_of_t<T>>
{
static typename all_of_t<T>::_column_tuple_t _(all_of_t<T> /*unused*/)
{
return {};
}
};
template <typename... Args> template <typename... Args>
struct as_column_tuple<std::tuple<Args...>> struct as_column_tuple<std::tuple<Args...>>
{ {