fix issue of fold expressions test(#320,#321)
This commit is contained in:
parent
d6590f88b0
commit
3d810fddac
@ -255,7 +255,11 @@ namespace nana
|
||||
bool show_modal(Args&& ... args)
|
||||
{
|
||||
std::vector<abstract_content*> contents;
|
||||
#ifdef __cpp_fold_expressions
|
||||
(contents.emplace_back(&args), ...);
|
||||
#else
|
||||
_m_fetch_args(contents, std::forward<Args>(args)...);
|
||||
#endif
|
||||
|
||||
if (contents.empty())
|
||||
return false;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* An Implementation of i18n
|
||||
* Nana C++ Library(http://www.nanapro.org)
|
||||
* Copyright(C) 2003-2016 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* A Message Box Class
|
||||
* Nana C++ Library(http://www.nanapro.org)
|
||||
* Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@ -1294,7 +1294,7 @@ namespace nana
|
||||
min_width_entry_field_pixels_ = pixels;
|
||||
}
|
||||
|
||||
#ifndef _nana_cxx_folding_expression
|
||||
#ifndef __cpp_fold_expressions
|
||||
void inputbox::_m_fetch_args(std::vector<abstract_content*>&)
|
||||
{}
|
||||
#endif
|
||||
|
@ -417,7 +417,7 @@ namespace nana
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef _nana_cxx_folding_expression
|
||||
#ifndef __cpp_fold_expressions
|
||||
void internationalization::_m_fetch_args(std::vector<std::string>&)
|
||||
{}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user