Thanks for the library and the update!
Browsing the docs, I've noticed that there's a bug in the documentation
for rangelib::random_range /*
http://stlsoft.sourceforge.net/doc-1.9/classrangelib_1_1random__range.html
*/.
The output stream argument to std::ostream_iterator is missing in the below:
stlsoft::r_copy(r, std::ostream_iterator<int>(" "));
Also, when compiling with no extra flags or preprocessor definitions the
namespace qualifier on random_range is recognized by GCC only when
changed to rangelib.
The following complete example compiles and works correctly:
#include <rangelib/algorithms.hpp>
#include <rangelib/random_range.hpp>
#include <iostream>
#include <iterator>
int main()
{
// Create a range of 10 values, whose value are between -100 and +100
rangelib::random_range r(10, -100, +100);
std::ostream_iterator<int> out_it (std::cout, " ");
// Dump them to stdout
rangelib::r_copy(r, out_it);
}
Best,
Matt