diff --git a/.github/workflows/revdepcheck.yaml b/.github/workflows/revdepcheck.yaml index 86685d1..818708e 100644 --- a/.github/workflows/revdepcheck.yaml +++ b/.github/workflows/revdepcheck.yaml @@ -48,7 +48,7 @@ jobs: "revdep", repos = "https://cloud.r-project.org/") tools::check_packages_in_dir("revdep", - check_args = "--as-cran --no-manual", + check_args = "--no-manual", Ncpus = 4) tools::summarize_check_packages_in_dir_results("revdep") diff --git a/inst/include/dqrng_generator.h b/inst/include/dqrng_generator.h index e998609..76a8004 100644 --- a/inst/include/dqrng_generator.h +++ b/inst/include/dqrng_generator.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -32,8 +31,10 @@ #if defined(__cpp_lib_make_unique) && (__cpp_lib_make_unique >= 201304) using std::make_unique; #else -#include -using boost::make_unique; +template +std::unique_ptr make_unique(Args&&... args) { + return std::unique_ptr(new T(std::forward(args)...)); +} #endif namespace dqrng { @@ -102,10 +103,11 @@ inline void random_64bit_wrapper<::dqrng::xoshiro256starstar>::set_stream(result template<> inline void random_64bit_wrapper::set_stream(result_type stream) { // set the stream relative to the current stream, i.e. stream = 0 does not change the RNG - boost::multiprecision::uint128_t number; - std::vector state; + pcg_extras::pcg128_t number; + std::vector state; std::stringstream iss; iss << gen; + using pcg_extras::operator>>; while (iss >> number) state.push_back(number); // state[1] is the current stream