Issue for BOOST_PP_REMOVE_PARENS macro
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Inspect remove_parens.hpp lines 24-36, focusing on the BOOST_PP_REMOVE_PARENS expansion identified in the report. Reproduce the macro expansion for parenthesized and non-parenthesized parameters, then verify that the resulting expansion matches the requested behavior.
Written by the indexing model from the issue text.
Description
I'm now using BOOST preprocess library for generate set/get/to_json/from_json code automatically. But I find some problem when using BOOST_PP_REMOVE_PARENS macro. Please check it.
Follow is the code in remove_parens.hpp with line 24-36.
The code for line 31 which should be (param) not (param)() in the original code.
#define BOOST_PP_REMOVE_PARENS(param)
BOOST_PP_IIF
(
BOOST_PP_IS_BEGIN_PARENS(param),
BOOST_PP_REMOVE_PARENS_DO,
BOOST_PP_IDENTITY
)
(param)() \ /// The content should be (param) not (param)().
/**/
#define BOOST_PP_REMOVE_PARENS_DO(param)
BOOST_PP_IDENTITY(BOOST_PP_TUPLE_ENUM(param))
/**/
- Dominant language
- C++
- Stars
- 118
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/preprocessor
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
boostorg/preprocessor#65 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
boostorg/preprocessor#63 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
boostorg/preprocessor#58 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
boostorg/preprocessor#55 ·
-
Documentation format Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
boostorg/preprocessor#52 ·
All issues in boostorg/preprocessor
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
mlcommons/mobile_app_open#1182 ·
-
Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-cli#6547 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·