Skip to main content
added 119 characters in body
Source Link
463035818_is_not_an_ai
  • 121.8k
  • 11
  • 99
  • 205

You forward declare class_foo::bar (as you can see in the eror message) but you want class_bar::bar.

You need the forward declaration in the right namespace:

namespace class_bar {
     class bar;
}

And then inside foo you need to refer to it with the right namespace too: class_bar::bar (rather than just bar). And same for the other class.

You forward declare class_foo::bar (as you can see in the eror message) but you want class_bar::bar.

You need the forward declaration in the right namespace:

namespace class_bar {
     class bar;
}

And same for the other class.

You forward declare class_foo::bar (as you can see in the eror message) but you want class_bar::bar.

You need the forward declaration in the right namespace:

namespace class_bar {
     class bar;
}

And then inside foo you need to refer to it with the right namespace too: class_bar::bar (rather than just bar). And same for the other class.

Source Link
463035818_is_not_an_ai
  • 121.8k
  • 11
  • 99
  • 205

You forward declare class_foo::bar (as you can see in the eror message) but you want class_bar::bar.

You need the forward declaration in the right namespace:

namespace class_bar {
     class bar;
}

And same for the other class.