Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Fix compilation error (VS 2019 v142)
Browse files Browse the repository at this point in the history
  • Loading branch information
katursis committed Jan 31, 2021
1 parent 55a2030 commit 2d42f6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ptl.h
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,10 @@ class AbstractPlugin {

template <auto func, bool expand_params = true>
void RegisterNative(const char *name) {
natives_[NativeGenerator<decltype(func), func, expand_params>::Native] =
name;
natives_[NativeGenerator<
typename std::add_pointer<
typename std::remove_pointer<decltype(func)>::type>::type,
func, expand_params>::Native] = name;
}

const std::string &GetNativeName(AMX_NATIVE func) {
Expand Down

0 comments on commit 2d42f6c

Please sign in to comment.