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 7505447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:54:51+00:00 2026-05-29T21:54:51+00:00

I am new to boost and metaprogramming so my problem is this: typedef fusion::vector<int,

  • 0

I am new to boost and metaprogramming so my problem is this:

typedef fusion::vector<int, char, double, std::string>  my_row;
typedef std::vector<my_row> my_vec;

my_row my_data = my_row(3,"f",2,"2");

my_vec t;

t.push_back(my_data); // this doesn't compile and gives error <C2039>

This might be a very stupid question for most of you, but why doesn’t this compile? Do i need to somehow transform the my_row vector into something that can be stored into an ordinary std::vector?

Also could someone point me to a nice introductory book on metaprogramming and boost so that i get the mentality behind boost’s use and some programming examples using boost?

I truly think the online manual website is absolute rubbish. At least it looks so to someone that is not completely new to C++ and STL but that gets lost in the scores of ‘struct’ declarations, and ‘::’ and ‘<>’ uses. In general all the things that just make boost hard to use and understand for a newcomer.

  • 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-05-29T21:54:52+00:00Added an answer on May 29, 2026 at 9:54 pm

    "f" is a string, not a char. Try 'f' instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The topic generically says it all. Basically in a situation like this: boost::scoped_array<int> p(new
My old Boost code: std::string CombinePath(const char* left, const char* right) { boost::filesystem::path p
I'm new in using boost and have a problem. I need shared_mutex function in
First off, a big thanks to the people behind the new boost::geometry library! This
Brief version of my question: This code crashes the compiler. pThread[0] = new boost::thread(
I'm new to boost and I've been trying out boost::asio. The problem is I
I have a shared_array: boost::shared_array myarr(new char[m_length]); I would like to reallocate the array.
I am trying to implement a vector like vector< boost::tuple<int,int,int> >day; I want to
I'm very new to boost::spirit/fusion. Could someone please explain to me why the following
I am new to boost - can you please tell me what are the

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.