* include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
(PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
* testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
Likewise.
From-SVN: r247346
+2017-04-27 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
+ (PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
+ * testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
+ Likewise.
+
2017-04-26 Jonathan Wakely <jwakely@redhat.com>
* testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
PB_DS_CLASS_C_DEC::
end() const
{
- return const_iterator(0, 0, const_cast<PB_DS_CLASS_C_DEC* const>(this));
+ return const_iterator(0, 0, const_cast<PB_DS_CLASS_C_DEC*>(this));
}
{
const double min = m_base_generator.min();
const double max = m_base_generator.max();
- const double range = static_cast<const double>(max - min);
- const double res = static_cast<const double>(m_base_generator() - min);
+ const double range = static_cast<double>(max - min);
+ const double res = static_cast<double>(m_base_generator() - min);
const double ret = res / range;
_GLIBCXX_DEBUG_ASSERT(ret >= 0 && ret <= 1);
return ret;