Sprout
Sprout copied to clipboard
stateful rand について
以下のコードについて、
#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回しか実体化されませんでした。これはバグなのでしょうか。