mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-10-05 13:00:00 +00:00
fix for VC++11
This commit is contained in:
parent
d5c61e65ca
commit
f673db1451
18 changed files with 382 additions and 164 deletions
|
@ -15,10 +15,17 @@ namespace sprout {
|
|||
std::true_type sprout_has_xxx_impl_check_template_rebind_size(int);
|
||||
template<typename T>
|
||||
std::false_type sprout_has_xxx_impl_check_template_rebind_size(long);
|
||||
#if defined(_MSC_VER)
|
||||
template<typename T, typename Base_ = decltype(sprout::containers::detail::sprout_has_xxx_impl_check_template_rebind_size<T>(0))>
|
||||
struct has_rebind_size
|
||||
: public Base_
|
||||
{};
|
||||
#else
|
||||
template<typename T>
|
||||
struct has_rebind_size
|
||||
: decltype(sprout::containers::detail::sprout_has_xxx_impl_check_template_rebind_size<T>(0))
|
||||
: public decltype(sprout::containers::detail::sprout_has_xxx_impl_check_template_rebind_size<T>(0))
|
||||
{};
|
||||
#endif
|
||||
} // namespace detail
|
||||
//
|
||||
// is_rebindable_size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue