Skip to content

Commit 6f0c367

Browse files
committed
Adjust any_cast_base<FancyHelloGreeter> to map to HelloGreeter
- Reflects the intended design that any_cast_base does not need to map directly to the root base, but can resolve recursively via intermediate types. - Enables fine-grained control over polymorphic casting resolution.
1 parent 4a2e42c commit 6f0c367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/include/greeter_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct BT::any_cast_base<HelloGreeter>
7575
template <>
7676
struct BT::any_cast_base<FancyHelloGreeter>
7777
{
78-
using type = Greeter;
78+
using type = HelloGreeter;
7979
};
8080

8181
// Register cast base type for Unwelcomer

0 commit comments

Comments
 (0)