• R/O
  • SSH
  • HTTPS

sprout: Commit


Commit MetaInfo

Revision5291 (tree)
Zeit2019-01-14 15:12:11
Autorbolero-murakami

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- sprout/cstdlib/div.hpp (revision 5290)
+++ sprout/cstdlib/div.hpp (revision 5291)
@@ -343,9 +343,7 @@
343343 namespace detail {
344344 template<typename Div>
345345 SPROUT_CONSTEXPR typename std::remove_reference<decltype(std::declval<Div>().quot)>::type&
346- div_at(Div& d, std::size_t i)
347- SPROUT_NOEXCEPT_IF_EXPR(std::declval<Div>().quot)
348- {
346+ div_at(Div& d, std::size_t i) {
349347 return i == 0 ? d.quot
350348 : i == 1 ? d.rem
351349 : (throw std::out_of_range("div_at: index out of range"), d.quot)
@@ -353,9 +351,7 @@
353351 }
354352 template<typename Div>
355353 SPROUT_CONSTEXPR typename std::remove_reference<decltype(std::declval<Div>().quot)>::type const&
356- div_at(Div const& d, std::size_t i)
357- SPROUT_NOEXCEPT_IF_EXPR(std::declval<Div>().quot)
358- {
354+ div_at(Div const& d, std::size_t i) {
359355 return i == 0 ? d.quot
360356 : i == 1 ? d.rem
361357 : (throw std::out_of_range("div_at: index out of range"), d.quot)
--- sprout/stateful/typed_counter.hpp (revision 5290)
+++ sprout/stateful/typed_counter.hpp (revision 5291)
@@ -84,7 +84,7 @@
8484 typename T,
8585 int N = 1,
8686 int R = sprout::typed_counter_detail::typed<T>::template state<
87- sprout::typed_counter_detail::typed<T>::template counter(sprout::true_type(), typename sprout::typed_counter_detail::typed<T>::template tag<N - 1>()) + N - 1
87+ sprout::typed_counter_detail::typed<T>::counter(sprout::true_type(), typename sprout::typed_counter_detail::typed<T>::template tag<N - 1>()) + N - 1
8888 >::value
8989 >
9090 inline SPROUT_CONSTEXPR int counter() {
--- sprout/stateful/typed_rand.hpp (revision 5290)
+++ sprout/stateful/typed_rand.hpp (revision 5291)
@@ -175,7 +175,7 @@
175175 typename T,
176176 int N = 1,
177177 int R = sprout::typed_rand_detail::typed<T>::template state<
178- sprout::typed_rand_detail::typed<T>::template counter(sprout::true_type(), typename sprout::typed_rand_detail::typed<T>::template tag<N - 1>()) + N - 1
178+ sprout::typed_rand_detail::typed<T>::counter(sprout::true_type(), typename sprout::typed_rand_detail::typed<T>::template tag<N - 1>()) + N - 1
179179 >::value
180180 >
181181 inline SPROUT_CONSTEXPR int rand() {
@@ -190,7 +190,7 @@
190190 typename T, unsigned Seed,
191191 int N = 1,
192192 int = sprout::typed_rand_detail::typed<T>::template state<
193- sprout::typed_rand_detail::typed<T>::template counter(sprout::true_type(), typename sprout::typed_rand_detail::typed<T>::template tag<N - 1>()) + N - 1,
193+ sprout::typed_rand_detail::typed<T>::counter(sprout::true_type(), typename sprout::typed_rand_detail::typed<T>::template tag<N - 1>()) + N - 1,
194194 true, Seed
195195 >::value
196196 >
@@ -199,7 +199,7 @@
199199 typename T, unsigned Seed,
200200 int N = 1,
201201 int R = sprout::typed_rand_detail::typed<T>::template state<
202- sprout::typed_rand_detail::typed<T>::template counter(sprout::true_type(), typename sprout::typed_rand_detail::typed<T>::template tag<N - 1>()) + N - 1,
202+ sprout::typed_rand_detail::typed<T>::counter(sprout::true_type(), typename sprout::typed_rand_detail::typed<T>::template tag<N - 1>()) + N - 1,
203203 true, Seed
204204 >::value
205205 >
--- sprout/stateful/typed_slot.hpp (revision 5290)
+++ sprout/stateful/typed_slot.hpp (revision 5291)
@@ -106,7 +106,7 @@
106106 template<
107107 typename T,
108108 int N = 1,
109- std::intmax_t R = sprout::typed_slot_detail::typed<T>::template val(sprout::true_type(), typename sprout::typed_slot_detail::typed<T>::template tag<N>())
109+ std::intmax_t R = sprout::typed_slot_detail::typed<T>::val(sprout::true_type(), typename sprout::typed_slot_detail::typed<T>::template tag<N>())
110110 >
111111 inline SPROUT_CONSTEXPR std::intmax_t slot() {
112112 return R;
@@ -120,7 +120,7 @@
120120 typename T, std::intmax_t Value,
121121 int N = 1,
122122 std::intmax_t = sprout::typed_slot_detail::typed<T>::template state<
123- sprout::typed_slot_detail::typed<T>::template counter(sprout::true_type(), typename sprout::typed_slot_detail::typed<T>::template tag<N - 1>()) + N - 1,
123+ sprout::typed_slot_detail::typed<T>::counter(sprout::true_type(), typename sprout::typed_slot_detail::typed<T>::template tag<N - 1>()) + N - 1,
124124 Value
125125 >::value
126126 >
@@ -129,7 +129,7 @@
129129 typename T, std::intmax_t Value,
130130 int N = 1,
131131 std::intmax_t R = sprout::typed_slot_detail::typed<T>::template state<
132- sprout::typed_slot_detail::typed<T>::template counter(sprout::true_type(), typename sprout::typed_slot_detail::typed<T>::template tag<N - 1>()) + N - 1,
132+ sprout::typed_slot_detail::typed<T>::counter(sprout::true_type(), typename sprout::typed_slot_detail::typed<T>::template tag<N - 1>()) + N - 1,
133133 Value
134134 >::value
135135 >
Show on old repository browser