mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-08-29 14:50:52 +00:00
fix warning for MSVC
This commit is contained in:
parent
9c037a7045
commit
b52f784219
4 changed files with 9 additions and 13 deletions
|
@ -343,9 +343,7 @@ namespace sprout {
|
|||
namespace detail {
|
||||
template<typename Div>
|
||||
SPROUT_CONSTEXPR typename std::remove_reference<decltype(std::declval<Div>().quot)>::type&
|
||||
div_at(Div& d, std::size_t i)
|
||||
SPROUT_NOEXCEPT_IF_EXPR(std::declval<Div>().quot)
|
||||
{
|
||||
div_at(Div& d, std::size_t i) {
|
||||
return i == 0 ? d.quot
|
||||
: i == 1 ? d.rem
|
||||
: (throw std::out_of_range("div_at: index out of range"), d.quot)
|
||||
|
@ -353,9 +351,7 @@ namespace sprout {
|
|||
}
|
||||
template<typename Div>
|
||||
SPROUT_CONSTEXPR typename std::remove_reference<decltype(std::declval<Div>().quot)>::type const&
|
||||
div_at(Div const& d, std::size_t i)
|
||||
SPROUT_NOEXCEPT_IF_EXPR(std::declval<Div>().quot)
|
||||
{
|
||||
div_at(Div const& d, std::size_t i) {
|
||||
return i == 0 ? d.quot
|
||||
: i == 1 ? d.rem
|
||||
: (throw std::out_of_range("div_at: index out of range"), d.quot)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue