bolero-MURAKAMI / Sprout

C++11/14 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others.

Home Page:http://bolero-murakami.github.io/Sprout/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fit:: 版のアルゴリズムが、ForwardIterator を要求する

bolero-MURAKAMI opened this issue · comments

現在の実装の都合上、二度走査する必要があるので ForwardIterator でなければならない。
現状、 ForwardIterator 未満の場合は static_assert で殺している。
InputIterator でよくするためには、fixed:: 版とは別の実装を用意する必要があり面倒。