Sprout icon indicating copy to clipboard operation
Sprout copied to clipboard

stateful rand について

Open rhwckl opened this issue 9 years ago • 0 comments

以下のコードについて、

#include <sprout/stateful/rand.hpp>
template<int r=0>
struct C{
    typedef typename C<(r,sprout::rand())>::type type;
};

typedef typename C<>::type start;
int main (){}

クラスCのインスタンスが数十回実体化されるのを期待していたのですが、gcc5.1.0ではフリーズ、clang 3.5 では1回しか実体化されませんでした。これはバグなのでしょうか。

rhwckl avatar Jun 05 '15 15:06 rhwckl