Boost C++ Libraries: Ticket #9906: random/test/seed_seq_archetype missing result_type? https://svn.boost.org/trac10/ticket/9906 <p> I'm not sure if I have identified the problem correctly, but I think it's like this: </p> <p> I'm testing a new random engine against the boost random/test/ scripts. In my code I'm using </p> <p> BOOST_RANDOM_DETAIL_SEED_SEQ_SEED(my_engine, <a class="missing wiki">SeeqSeq</a>, seq) { ... sizeof(typename SeeqSeq::result_type) </p> <p> and the script test my code with </p> <p> <a class="missing wiki">SeeqSeq</a> = boost::random::test::seed_seq_archetype&lt;boost::null_archetype&lt;int&gt; &gt; </p> <p> This seed_seq_archetype defined in random/test/concepts.hpp seems to be missing result_type. It has value_type instead. The C++11 draft (N3242 p905) says it should have a result_type and that's also what I see in boost/random/seed_seq.hpp </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9906 Trac 1.4.3 Steven Watanabe Tue, 15 Apr 2014 00:52:05 GMT <link>https://svn.boost.org/trac10/ticket/9906#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9906#comment:1</guid> <description> <p> The standard requirements on SeedSeq are basically a clone of the interface of seed_seq, which is unnecessarily restrictive. I deliberately relaxed the requirements in Boost.Random. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 15 Apr 2014 02:18:51 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/9906#comment:2 https://svn.boost.org/trac10/ticket/9906#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> Also, if you're doing anything with !SeedSeq::result_type, it's probably wrong. A SeedSeq always gives 32-bit outputs regardless of the result_type. </p> Ticket Thijs@… Tue, 15 Apr 2014 06:22:37 GMT <link>https://svn.boost.org/trac10/ticket/9906#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9906#comment:3</guid> <description> <p> Thanks for the info. I was indeed thinking that "at least 32 bit" was determined to the size of result_type. This also explains the fixed size 32 bit I see in ::detail. I'll use those routines instead. </p> </description> <category>Ticket</category> </item> </channel> </rss>