fix less namespace and header

This commit is contained in:
Bolero-MURAKAMI 2013-08-31 08:29:24 +09:00
parent 69a735f874
commit bbeb2f1b4b
2 changed files with 4 additions and 10 deletions

View file

@ -12,7 +12,7 @@
#include <iterator>
#include <sprout/config.hpp>
#include <sprout/iterator/operation.hpp>
#include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT
#include <sprout/functional/less.hpp>
namespace sprout {
@ -35,10 +35,7 @@ namespace sprout {
template<typename ForwardIterator, typename T>
inline SPROUT_CONSTEXPR ForwardIterator
lower_bound(ForwardIterator first, ForwardIterator last, T const& value) {
return sprout::lower_bound(
first, last, value,
NS_SSCRISK_CEL_OR_SPROUT::less<>()
);
return sprout::lower_bound(first, last, value, sprout::less<>());
}
} // namespace sprout

View file

@ -12,7 +12,7 @@
#include <iterator>
#include <sprout/config.hpp>
#include <sprout/iterator/operation.hpp>
#include HDR_FUNCTIONAL_SSCRISK_CEL_OR_SPROUT
#include <sprout/functional/less.hpp>
namespace sprout {
@ -35,10 +35,7 @@ namespace sprout {
template<typename ForwardIterator, typename T>
inline SPROUT_CONSTEXPR ForwardIterator
upper_bound(ForwardIterator first, ForwardIterator last, T const& value) {
return sprout::upper_bound(
first, last, value,
NS_SSCRISK_CEL_OR_SPROUT::less<>()
);
return sprout::upper_bound(first, last, value, sprout::less<>());
}
} // namespace sprout