Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8272395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:06:50+00:00 2026-06-08T07:06:50+00:00

I got stuck here… #define CONCAT(a,b) BOOST_PP_STRINGIZE(BOOST_PP_CAT(a,b)) #define CONCAT1(a,b,c) CONCAT(CONCAT(a,b),c) and so on. How

  • 0

I got stuck here…

#define CONCAT(a,b) BOOST_PP_STRINGIZE(BOOST_PP_CAT(a,b))
#define CONCAT1(a,b,c) CONCAT(CONCAT(a,b),c) and so on.

How i can to generate the CONCAT macro even if 20 arguments? May be i can to use BOOST_PP_SEQ_FOR_EACH but i don’t understand how to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:06:52+00:00Added an answer on June 8, 2026 at 7:06 am

    It depends on you use-case.

    This

    #include <boost/preprocessor/cat.hpp>
    #include <boost/preprocessor/stringize.hpp>
    #include <boost/preprocessor/seq/for_each.hpp>
    
    #define SEQ (a)(b)(c)
    
    BOOST_PP_STRINGIZE(BOOST_PP_SEQ_CAT(SEQ)) // "abc"
    

    will concatenate the sequence and then stringize it. It is also possible to simply stringize each argument as "a" "b" "c" is equivalent to "abc".

    #define MY_STRINGIZE(r, data, elem) BOOST_PP_STRINGIZE(elem)
    BOOST_PP_SEQ_FOR_EACH(MY_STRINGIZE, _, SEQ)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got stuck here... #include <stdio.h> #define DBG_LVL(lvl, stmt) \ do{ \ if(lvl>1) printf
Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need
Hi i got stuck with this problem, i can't find out how to get
I got stuck in the problem in which I can't able to launch any
I am a bit stuck here and can't think further. public struct CandidateDetail {
I got stuck in here, I have a custom scrollview in a view this
I'm doing some assignment and got stuck at one point here. I am trying
I am making a JApplet and got stuck with a animation problem. Here is
I'm doing some tests on a wicket prototype here, and I got stuck on
I got stuck just with one problem: I don't have even an idea why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.