Skip to content

Commit

Permalink
Fix BOOST_PP_OVERLOAD usage for MSVC.
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Baden <[email protected]>
  • Loading branch information
ienkovich authored and andrewseidl committed Mar 18, 2021
1 parent 4ea31d4 commit 6924cea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SQLFrontend/CommandFunctors.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@ class CmdStringUtilities {

#define StandardCommand_2(CommandName, CommandOperations) \
StandardCommand_3(CommandName, CommandOperations, CmdDeterminant)
#if !BOOST_PP_VARIADICS_MSVC
#define StandardCommand(...) BOOST_PP_OVERLOAD(StandardCommand_, __VA_ARGS__)(__VA_ARGS__)
#else
#define StandardCommand(...) \
BOOST_PP_CAT(BOOST_PP_OVERLOAD(StandardCommand_, __VA_ARGS__)(__VA_ARGS__), \
BOOST_PP_EMPTY())
#endif

//
// Standard Command Definitions
Expand Down

0 comments on commit 6924cea

Please sign in to comment.