Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DavidPfander-UniStuttgart/2bde59559f003128c6dcaa1a02cc4501 to your computer and use it in GitHub Desktop.
Save DavidPfander-UniStuttgart/2bde59559f003128c6dcaa1a02cc4501 to your computer and use it in GitHub Desktop.
compilation error
g++-6 -o debug/wrong_type.o -c -std=c++14 -fopenmp -Wall -Wno-ignored-attributes -Wno-unused-local-typedefs -O0 -g -fno-omit-frame-pointer -DHPX_DEBUG -DHPX_APPLICATION_EXPORTS -DHPX_ENABLE_ASSERT_HANDLER -Ihpx_install_debug/include -Ihpx_install_debug/include/hpx/external -IVc_install_debug/include -Iboost_1_62_0_install_debug/include wrong_type.cpp
wrong_type.cpp: In function ‘int hpx_main(boost::program_options::variables_map&)’:
wrong_type.cpp:16:6: error: no matching function for call to ‘for_each(const hpx::parallel::v1::sequential_execution_policy&, hpx::util::zip_iterator<__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > > >&, hpx::util::zip_iterator<__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > > >&, hpx_main(boost::program_options::variables_map&)::<lambda(auto:1&)>)’
});
^
In file included from hpx_install_debug/include/hpx/include/parallel_for_each.hpp:10:0,
from wrong_type.cpp:2:
hpx_install_debug/include/hpx/parallel/algorithms/for_each.hpp:416:5: note: candidate: template<class ExPolicy, class InIter, class F, class Proj, int _concept_requires_414, typename std::enable_if<((_concept_requires_414 == 43) || (((hpx::parallel::v1::is_execution_policy<T>::value && hpx::traits::is_iterator<Iter>::value) && hpx::parallel::traits::is_projected<Proj, InIter>::value) && hpx::parallel::traits::is_indirect_callable<F, hpx::parallel::traits::projected<Proj, InIter> >::value)), int>::type _concept_check_414> typename hpx::parallel::util::detail::algorithm_result<ExPolicy, T>::type hpx::parallel::v1::for_each(ExPolicy&&, InIter, InIter, F&&, Proj&&)
for_each(ExPolicy && policy, InIter first, InIter last, F && f,
^~~~~~~~
hpx_install_debug/include/hpx/parallel/algorithms/for_each.hpp:416:5: note: template argument deduction/substitution failed:
In file included from hpx_install_debug/include/hpx/lcos/future.hpp:18:0,
from hpx_install_debug/include/hpx/lcos/detail/async_implementations_fwd.hpp:11,
from hpx_install_debug/include/hpx/lcos/detail/async_implementations.hpp:10,
from hpx_install_debug/include/hpx/lcos/async.hpp:11,
from hpx_install_debug/include/hpx/async.hpp:10,
from hpx_install_debug/include/hpx/parallel/executors/executor_traits.hpp:13,
from hpx_install_debug/include/hpx/parallel/executors/executor_parameter_traits.hpp:13,
from hpx_install_debug/include/hpx/parallel/datapar/execution_policy.hpp:14,
from hpx_install_debug/include/hpx/parallel/datapar.hpp:13,
from hpx_install_debug/include/hpx/include/datapar.hpp:9,
from wrong_type.cpp:1:
hpx_install_debug/include/hpx/traits/concepts.hpp:21:55: error: no type named ‘type’ in ‘struct std::enable_if<false, int>’
>::type BOOST_PP_CAT(_concept_check_, __LINE__) = 0 \
^
hpx_install_debug/include/hpx/parallel/algorithms/for_each.hpp:408:5: note: in expansion of macro ‘HPX_CONCEPT_REQUIRES_’
HPX_CONCEPT_REQUIRES_(
^
hpx_install_debug/include/hpx/traits/concepts.hpp:21:55: note: invalid template non-type parameter
>::type BOOST_PP_CAT(_concept_check_, __LINE__) = 0 \
^
hpx_install_debug/include/hpx/parallel/algorithms/for_each.hpp:408:5: note: in expansion of macro ‘HPX_CONCEPT_REQUIRES_’
HPX_CONCEPT_REQUIRES_(
^
In file included from hpx_install_debug/include/hpx/include/parallel_for_each.hpp:11:0,
from wrong_type.cpp:2:
hpx_install_debug/include/hpx/parallel/container_algorithms/for_each.hpp:109:5: note: candidate: template<class ExPolicy, class Rng, class F, class Proj, int _concept_requires_105, typename std::enable_if<((_concept_requires_105 == 43) || (((hpx::parallel::v1::is_execution_policy<T>::value && hpx::parallel::traits::is_range<Rng>::value) && hpx::parallel::traits::is_projected_range<Proj, Rng>::value) && hpx::parallel::traits::is_indirect_callable<F, hpx::parallel::traits::projected_range<Proj, Rng, void> >::value)), int>::type _concept_check_105> typename hpx::parallel::util::detail::algorithm_result<ExPolicy, typename hpx::parallel::traits::range_iterator<Rng>::type>::type hpx::parallel::v1::for_each(ExPolicy&&, Rng&&, F&&, Proj&&)
for_each(ExPolicy && policy, Rng && rng, F && f, Proj && proj = Proj())
^~~~~~~~
hpx_install_debug/include/hpx/parallel/container_algorithms/for_each.hpp:109:5: note: template argument deduction/substitution failed:
In file included from hpx_install_debug/include/hpx/lcos/future.hpp:18:0,
from hpx_install_debug/include/hpx/lcos/detail/async_implementations_fwd.hpp:11,
from hpx_install_debug/include/hpx/lcos/detail/async_implementations.hpp:10,
from hpx_install_debug/include/hpx/lcos/async.hpp:11,
from hpx_install_debug/include/hpx/async.hpp:10,
from hpx_install_debug/include/hpx/parallel/executors/executor_traits.hpp:13,
from hpx_install_debug/include/hpx/parallel/executors/executor_parameter_traits.hpp:13,
from hpx_install_debug/include/hpx/parallel/datapar/execution_policy.hpp:14,
from hpx_install_debug/include/hpx/parallel/datapar.hpp:13,
from hpx_install_debug/include/hpx/include/datapar.hpp:9,
from wrong_type.cpp:1:
hpx_install_debug/include/hpx/traits/concepts.hpp:21:55: error: no type named ‘type’ in ‘struct std::enable_if<false, int>’
>::type BOOST_PP_CAT(_concept_check_, __LINE__) = 0 \
^
hpx_install_debug/include/hpx/parallel/container_algorithms/for_each.hpp:99:5: note: in expansion of macro ‘HPX_CONCEPT_REQUIRES_’
HPX_CONCEPT_REQUIRES_(
^
hpx_install_debug/include/hpx/traits/concepts.hpp:21:55: note: invalid template non-type parameter
>::type BOOST_PP_CAT(_concept_check_, __LINE__) = 0 \
^
hpx_install_debug/include/hpx/parallel/container_algorithms/for_each.hpp:99:5: note: in expansion of macro ‘HPX_CONCEPT_REQUIRES_’
HPX_CONCEPT_REQUIRES_(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment