forked from luabind/luabind
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially revert ecfe25e for performance reasons.
ecfe25e: "Fix #25: Overload candidates overflow" was somewhat detrimental for performance (~5x in MSVC Debug mode), since this code is run on every function call. So instead of using a std::vector, revert to the statically allocated 10-element array but check for overflows. Since the array (except for the first element if it is the only one) is only used to generate the ambiguity error message, just discard addidional elements, keeping track of how many there were and display that number in the error message if > 0.
- Loading branch information
Showing
3 changed files
with
25 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters