Merge branch 'leobackes-fix-consts' into hotfix-1.5.1

This commit is contained in:
Jinhao 2017-05-31 22:49:31 +08:00
commit 283880f668
2 changed files with 3 additions and 3 deletions

View File

@ -893,7 +893,7 @@ namespace nana
} }
template<typename T> template<typename T>
T* value_ptr() const T const * value_ptr() const
{ {
return any_cast<T>(_m_value()); return any_cast<T>(_m_value());
} }

View File

@ -237,9 +237,9 @@ namespace nana
return this->get_drawer_trigger().activated(); return this->get_drawer_trigger().activated();
} }
value_type & at(std::size_t pos) const /// Returns pos'th element value_type const & at(std::size_t pos) const /// Returns pos'th element
{ {
return static_cast<value_type&>(this->get_drawer_trigger().at(pos)); return any_cast<value_type&>(this->get_drawer_trigger().at(pos));
} }
void close_fly(bool fly) /// Draw or not a close button in each tab. void close_fly(bool fly) /// Draw or not a close button in each tab.