Skip to content

Correction for named Functor As it was creating confusion and may mislead new learners.#65

Open
Subh85330 wants to merge 1 commit intoBehaviorTree:masterfrom
Subh85330:patch-2
Open

Correction for named Functor As it was creating confusion and may mislead new learners.#65
Subh85330 wants to merge 1 commit intoBehaviorTree:masterfrom
Subh85330:patch-2

Conversation

@Subh85330
Copy link

name functor is removed for function pointer, as it is defined for a class/struct which overloads function call operator '(…c)'.

In C++, a function pointer is not a "functor" in the common C++ sense, but both are types of callable objects. A functor (function object) is specifically a class or struct that overloads the function call operator()

…class/struc which overloads function call operator '()'.

In C++, a function pointer is not a "functor" in the common C++ sense, but both are types of callable objects. A functor (function object) is specifically a class or struct that overloads the function call operator()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant