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

Minor cleanup

This commit is contained in:
Roland Bock 2013-08-17 11:27:41 +02:00
parent 80e573568e
commit f39582082b
3 changed files with 13 additions and 9 deletions

View File

@ -235,6 +235,13 @@ int main()
static_assert(std::is_same<decltype(a), decltype(b)>::value, "all_of(t) has to be expanded by multi_column");
}
// Test that select(tab) is expanded in multi_column
{
auto a = multi_column(sqlpp::alias::a, t);
auto b = multi_column(sqlpp::alias::a, t.alpha, t.beta, t.gamma);
static_assert(std::is_same<decltype(a), decltype(b)>::value, "t has to be expanded by multi_column");
}
// Test that a multicolumn is not a value
{
auto m = multi_column(sqlpp::alias::a, t.alpha, t.beta);

View File

@ -1,3 +0,0 @@
# to be called from the sqlpp11 folder
clang++ -std=c++11 -stdlib=libc++ examples/SelectTest.cpp -Iinclude