Skip to content

Commit

Permalink
Rename SPECIALIZATION to GET_SPECIALIZATION.
Browse files Browse the repository at this point in the history
  • Loading branch information
jll63 committed Sep 1, 2013
1 parent 6c528ca commit b103fc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/yorel/multi_methods/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@

#define END_SPECIALIZATION } };

#define SPECIALIZATION(ID, RESULT, ARGS...) ID ## _specialization<RESULT(ARGS)>::body
#define GET_SPECIALIZATION(ID, RESULT, ARGS...) ID ## _specialization<RESULT(ARGS)>::body
2 changes: 1 addition & 1 deletion tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ int main() {
test(encounter(c, c), "ignore");

// static call
test(SPECIALIZATION(encounter, string, Animal&, Animal&)(c, w), "ignore");
test(GET_SPECIALIZATION(encounter, string, Animal&, Animal&)(c, w), "ignore");

// next
test(encounter_specialization<string(Wolf&, Wolf&)>::next(w, w), "fight");
Expand Down

0 comments on commit b103fc5

Please sign in to comment.