Get rid of static_cast

This commit is contained in:
rbock
2016-05-12 14:35:14 +02:00
parent 7771ed8269
commit 3f33eb8554

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2015, Roland Bock
* Copyright (c) 2013-2016, Roland Bock
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
@@ -61,8 +61,7 @@ namespace sqlpp
void _bind_impl(Target& target, const detail::index_sequence<Is...>&) const
{
using swallow = int[]; // see interpret_tuple.h
(void)swallow{(
static_cast<typename std::tuple_element<Is, const _member_tuple_t>::type&>(*this)()._bind(target, Is), 0)...};
(void)swallow{(std::tuple_element<Is, _member_tuple_t>::type::operator()()._bind(target, Is), 0)...};
}
};