Win32 compile fix (#warning)

This commit is contained in:
Eric Frias 2015-10-08 15:23:26 -04:00
parent 573a6d6e97
commit 5e6f5506ec

View file

@ -47,7 +47,11 @@ vector<std::reference_wrapper<const typename Index::object_type>> database::sort
template<class... Types>
void database::perform_account_maintenance(std::tuple<Types...> helpers)
{
#warning switch to this for next release: const auto& idx = get_index_type<account_index>().indices().get<by_name>();
#ifdef _MSC_VER
# pragma message ("WARNING: switch to this for next release: const auto& idx = get_index_type<account_index>().indices().get<by_name>();")
#else
# warning switch to this for next release: const auto& idx = get_index_type<account_index>().indices().get<by_name>();
#endif
const auto& idx = get_index_type<account_index>().indices();
for( const account_object& a : idx )
detail::for_each(helpers, a, detail::gen_seq<sizeof...(Types)>());