Sprout icon indicating copy to clipboard operation
Sprout copied to clipboard

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

Results 12 Sprout issues
Sort by recently updated
recently updated
newest added

以下のコードについて、 ``` #include template struct C{ typedef typename C::type type; }; typedef typename C::type start; int main (){} ``` クラスCのインスタンスが数十回実体化されるのを期待していたのですが、gcc5.1.0ではフリーズ、clang 3.5 では1回しか実体化されませんでした。これはバグなのでしょうか。

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