random/bernoulli_distribution.hpp 追加

string.hpp 修正
This commit is contained in:
bolero-MURAKAMI 2011-10-10 10:20:21 +09:00
parent ba79d0b42d
commit 99f1a4f741
10 changed files with 384 additions and 28 deletions

View file

@ -6,7 +6,7 @@
#include <sprout/config.hpp>
#include <sprout/fixed_container/traits.hpp>
#include <sprout/fixed_container/functions.hpp>
#include <sprout/iterator/operation.hpp>
#include <sprout/iterator/operation.hpp>
#include <sprout/algorithm/fixed/result_of.hpp>
namespace sprout {
@ -82,7 +82,7 @@ namespace sprout {
Args const&... args
)
{
return sizeof...(Args) < offset
return sizeof...(Args) < static_cast<std::size_t>(offset)
? generate_impl_3<InitSize>(cont, gen, offset, args..., call_gen<InitSize, Container>(gen, args...))
: generate_impl_4(cont, args...)
;
@ -161,7 +161,7 @@ namespace sprout {
Args const&... args
)
{
return sizeof...(Args) - InitSize < offset
return sizeof...(Args) - InitSize < static_cast<std::size_t>(offset)
? generate_impl_1<InitSize>(cont, gen, offset, size, args..., *sprout::next(sprout::fixed_begin(cont), sizeof...(Args) - InitSize))
: generate_impl_2<InitSize>(cont, gen, offset, size, InitSize, args...)
;