1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix warning (for -Wextra)

This commit is contained in:
bolero-MURAKAMI 2013-07-22 22:00:09 +09:00
parent 49243e6c94
commit 57e35349e5
146 changed files with 459 additions and 499 deletions

View file

@ -22,7 +22,7 @@ namespace sprout {
public:
template<typename Cont>
static SPROUT_CONSTEXPR copied_type
deep_copy(Cont&& cont) {
deep_copy(Cont&&) {
return copied_type();
}
template<typename... Args>
@ -47,7 +47,7 @@ namespace sprout {
public:
template<typename Cont>
static SPROUT_CONSTEXPR copied_type
deep_copy(Cont&& cont) {
deep_copy(Cont&&) {
return copied_type();
}
template<typename... Args>
@ -62,7 +62,7 @@ namespace sprout {
}
template<typename Cont, typename InputIterator>
static SPROUT_CONSTEXPR copied_type
remake(Cont&& cont, typename sprout::container_traits<sprout::pit<Container> >::difference_type size, InputIterator first, InputIterator last) {
remake(Cont&&, typename sprout::container_traits<sprout::pit<Container> >::difference_type, InputIterator first, InputIterator last) {
return copied_type(first, last);
}
};

View file

@ -93,10 +93,10 @@ namespace sprout {
return enumerable_size == 0;
}
// element access:
reference operator[](size_type i) {
reference operator[](size_type) {
return elem;
}
SPROUT_CONSTEXPR const_reference operator[](size_type i) const {
SPROUT_CONSTEXPR const_reference operator[](size_type) const {
return elem;
}
reference at(size_type i) {