Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # this command line:
- # g++ -std=c++11 -Wc++11-extensions -I /usr/local/include/boost/ big_sieve.cc -o big_sieve
- big_sieve.cc:15:15: error: cannot convert 'typename enable_if_c<number_category<gmp_int>::value == number_kind_integer, detail::expression<detail::modulus_immediates, number<gmp_int, et_on>, number<gmp_int, et_on> > >::type' (aka 'boost::multiprecision::detail::expression<boost::multiprecision::detail::modulus_immediates, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on>, void, void>') to 'unsigned long long' without a conversion operator
- T c = S(a % T(b));
- ^~~~~~~~~~
- big_sieve.cc:154:17: note: in instantiation of function template specialization 'modulo<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on>, unsigned long long>' requested here
- const S a_p = modulo(a, p);
- ^
- big_sieve.cc:193:25: note: in instantiation of function template specialization 'sieve_interval<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on>, unsigned long long>' requested here
- const auto is_prime = sieve_interval(a, L, small_integer(1), B);
- ^
- In file included from big_sieve.cc:5:
- In file included from /usr/local/include/boost/multiprecision/integer.hpp:9:
- In file included from /usr/local/include/boost/multiprecision/cpp_int.hpp:12:
- In file included from /usr/local/include/boost/multiprecision/number.hpp:20:
- /usr/local/include/boost/type_traits/make_unsigned.hpp:38:4: error: static_assert failed "(::boost::type_traits::ice_or< ::boost::is_integral<T>::value, ::boost::is_enum<T>::value>::value)"
- BOOST_STATIC_ASSERT(
- ^
- /usr/local/include/boost/static_assert.hpp:78:41: note: expanded from macro 'BOOST_STATIC_ASSERT'
- # define BOOST_STATIC_ASSERT( ... ) static_assert(__VA_ARGS__, #__VA_ARGS__)
- ^
- /usr/local/include/boost/type_traits/make_unsigned.hpp:144:70: note: in instantiation of template class 'boost::detail::make_unsigned_imp<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- BOOST_TT_AUX_TYPE_TRAIT_DEF1(make_unsigned,T,typename boost::detail::make_unsigned_imp<T>::type)
- ^
- /usr/local/include/boost/type_traits/detail/type_trait_def.hpp:21:13: note: expanded from macro 'BOOST_TT_AUX_TYPE_TRAIT_DEF1'
- typedef result type; \
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:53:22: note: in instantiation of template class 'boost::make_unsigned<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- typedef typename make_unsigned<T>::type range_type;
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:229:12: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- return generate_uniform_int(eng, min_value, max_value,
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:353:22: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- { return detail::generate_uniform_int(eng, _min, _max); }
- ^
- big_sieve.cc:82:15: note: in instantiation of function template specialization 'boost::random::uniform_int_distribution<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >::operator()<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> >' requested here
- const T a = ui(mt);
- ^
- big_sieve.cc:203:9: note: in instantiation of function template specialization 'miller_rabin<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- if(!miller_rabin(p)) {
- ^
- In file included from big_sieve.cc:7:
- In file included from /usr/local/include/boost/random.hpp:36:
- In file included from /usr/local/include/boost/random/additive_combine.hpp:27:
- In file included from /usr/local/include/boost/random/linear_congruential.hpp:32:
- In file included from /usr/local/include/boost/random/detail/seed_impl.hpp:30:
- /usr/local/include/boost/random/detail/signed_unsigned_tools.hpp:47:31: error: cannot convert 'detail::expression<detail::negate, detail::expression<add_immediates, number<gmp_int, boost::multiprecision::expression_template_option::et_on>, int, void, void> >' to 'result_type' (aka 'int') without a conversion operator
- return result_type(x) + result_type(-(y+1)) + 1;
- ^~~~~~~~~~~~~~~~~~
- /usr/local/include/boost/random/uniform_int_distribution.hpp:57:30: note: in instantiation of member function 'boost::random::detail::subtract<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on>, true>::operator()' requested here
- const range_type range = random::detail::subtract<result_type>()(max_value, min_value);
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:229:12: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- return generate_uniform_int(eng, min_value, max_value,
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:353:22: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- { return detail::generate_uniform_int(eng, _min, _max); }
- ^
- big_sieve.cc:82:15: note: in instantiation of function template specialization 'boost::random::uniform_int_distribution<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >::operator()<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> >' requested here
- const T a = ui(mt);
- ^
- big_sieve.cc:203:9: note: in instantiation of function template specialization 'miller_rabin<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- if(!miller_rabin(p)) {
- ^
- In file included from big_sieve.cc:7:
- In file included from /usr/local/include/boost/random.hpp:36:
- In file included from /usr/local/include/boost/random/additive_combine.hpp:27:
- In file included from /usr/local/include/boost/random/linear_congruential.hpp:32:
- In file included from /usr/local/include/boost/random/detail/seed_impl.hpp:30:
- /usr/local/include/boost/random/detail/signed_unsigned_tools.hpp:49:12: error: cannot convert 'detail::expression<detail::subtract_immediates, number<gmp_int, et_on>, number<gmp_int, et_on> >' to 'result_type' (aka 'int') without a conversion operator
- return result_type(x - y);
- ^~~~~~~~~~~~~~~~~
- /usr/local/include/boost/random/detail/signed_unsigned_tools.hpp:76:13: error: cannot convert 'detail::expression<detail::negate, detail::expression<add_immediates, number<gmp_int, boost::multiprecision::expression_template_option::et_on>, int, void, void> >' to 'unsigned int' without a conversion operator
- if (x > T1(-(y+1))) // result >= 0 after subtraction
- ^~~~~~~~~
- /usr/local/include/boost/random/uniform_int_distribution.hpp:68:14: note: in instantiation of member function 'boost::random::detail::add<unsigned int, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on>, true>::operator()' requested here
- return random::detail::add<base_unsigned, result_type>()(v, min_value);
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:229:12: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- return generate_uniform_int(eng, min_value, max_value,
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:353:22: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- { return detail::generate_uniform_int(eng, _min, _max); }
- ^
- big_sieve.cc:82:15: note: in instantiation of function template specialization 'boost::random::uniform_int_distribution<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >::operator()<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> >' requested here
- const T a = ui(mt);
- ^
- big_sieve.cc:203:9: note: in instantiation of function template specialization 'miller_rabin<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- if(!miller_rabin(p)) {
- ^
- In file included from big_sieve.cc:7:
- In file included from /usr/local/include/boost/random.hpp:36:
- In file included from /usr/local/include/boost/random/additive_combine.hpp:27:
- In file included from /usr/local/include/boost/random/linear_congruential.hpp:32:
- In file included from /usr/local/include/boost/random/detail/seed_impl.hpp:30:
- /usr/local/include/boost/random/detail/signed_unsigned_tools.hpp:76:13: error: cannot convert 'detail::expression<detail::negate, detail::expression<add_immediates, number<gmp_int, boost::multiprecision::expression_template_option::et_on>, int, void, void> >' to 'int' without a conversion operator
- if (x > T1(-(y+1))) // result >= 0 after subtraction
- ^~~~~~~~~
- /usr/local/include/boost/random/uniform_int_distribution.hpp:184:16: note: in instantiation of member function 'boost::random::detail::add<int, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on>, true>::operator()' requested here
- return random::detail::add<range_type, result_type>()(result, min_value);
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:229:12: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- return generate_uniform_int(eng, min_value, max_value,
- ^
- /usr/local/include/boost/random/uniform_int_distribution.hpp:353:22: note: in instantiation of function template specialization 'boost::random::detail::generate_uniform_int<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>, boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- { return detail::generate_uniform_int(eng, _min, _max); }
- ^
- big_sieve.cc:82:15: note: in instantiation of function template specialization 'boost::random::uniform_int_distribution<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >::operator()<boost::random::mersenne_twister_engine<unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253> >' requested here
- const T a = ui(mt);
- ^
- big_sieve.cc:203:9: note: in instantiation of function template specialization 'miller_rabin<boost::multiprecision::number<boost::multiprecision::backends::gmp_int, boost::multiprecision::expression_template_option::et_on> >' requested here
- if(!miller_rabin(p)) {
- ^
- 6 errors generated.
Add Comment
Please, Sign In to add comment