You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As shown in the component_inheritance_simple example constructing a derived component with arguments that is not defined in the base class using hpx::components::new_ leads to an ambiguous typename.
The example as committed in b3669a2 gives the following compile error:
In file included from hpx/runtime/components/server/preprocessed/runtime_support_implementations.hpp:11:0,
from hpx/runtime/components/server/runtime_support_implementations.hpp:14,
from hpx/runtime/components/server/runtime_support.hpp:439,
from hpx/runtime/components/stubs/runtime_support.hpp:14,
from hpx/include/client.hpp:10,
from hpx/runtime/agas/component_namespace.hpp:11,
from hpx/runtime/agas/addressing_service.hpp:33,
from hpx/runtime/naming/resolver_client.hpp:11,
from hpx/runtime/components/server/destroy_component.hpp:13,
from hpx/runtime/components/component_factory.hpp:17,
from hpx/include/components.hpp:13,
from examples/quickstart/component_inheritance_simple.cpp:10:
hpx/runtime/components/server/preprocessed/runtime_support_implementations_5.hpp: In instantiation of 'hpx::naming::gid_type hpx::components::server::runtime_support::create_component1(A0) [with Component = B; A0 = int]':
hpx/runtime/components/server/preprocessed/runtime_support_implementations_5.hpp:88:12: required from 'struct hpx::components::server::create_component_action1<B, int>'
hpx/runtime/components/stubs/runtime_support.hpp:108:1: required from 'static hpx::lcos::future<hpx::naming::id_type> hpx::components::stubs::runtime_support::create_component_async(const hpx::naming::id_type&, Arg0&&) [with Component = B; Arg0 = int]'
hpx/runtime/components/stubs/stub_base.hpp:76:1: required from 'static hpx::lcos::future<hpx::naming::id_type> hpx::components::stub_base<ServerComponent>::create_async(const hpx::naming::id_type&, Arg0&&) [with Arg0 = int; ServerComponent = B]'
hpx/runtime/components/preprocessed/new_5.hpp:18:41: required from 'typename boost::enable_if<hpx::traits::is_component<Component>, hpx::lcos::future<hpx::naming::id_type> >::type hpx::components::new_(const hpx::naming::id_type&, Arg0&&) [with Component = B; Arg0 = int; typename boost::enable_if<hpx::traits::is_component<Component>, hpx::lcos::future<hpx::naming::id_type> >::type = hpx::lcos::future<hpx::naming::id_type>]'
examples/quickstart/component_inheritance_simple.cpp:91:53: required from here
hpx/runtime/components/server/preprocessed/runtime_support_implementations_5.hpp:74:13: error: lookup of 'wrapping_type' in 'B' is ambiguous
In file included from hpx/include/components.hpp:34:0,
from examples/quickstart/component_inheritance_simple.cpp:10:
hpx/runtime/components/server/simple_component_base.hpp:45:55: error: candidates are: typedef class hpx::components::simple_component<B> hpx::components::simple_component_base<B>::wrapping_type
In file included from hpx/include/components.hpp:35:0,
from examples/quickstart/component_inheritance_simple.cpp:10:
hpx/runtime/components/server/abstract_component_base.hpp:25:45: error: typedef class hpx::components::simple_component<A> hpx::components::abstract_simple_component_base<A>::wrapping_type
The text was updated successfully, but these errors were encountered:
As shown in the
component_inheritance_simple
example constructing a derived component with arguments that is not defined in the base class usinghpx::components::new_
leads to an ambiguous typename.The example as committed in b3669a2 gives the following compile error:
The text was updated successfully, but these errors were encountered: