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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:48:26+00:00 2026-06-08T18:48:26+00:00

I use boost a lot in my code but have so far refrained from

  • 0

I use boost a lot in my code but have so far refrained from using std::tr1. Now I need a more sophisticated function pointer, like those two can provide. Unfortunately C+11 is not an option yet. I read that boost::function can be tricky with certain compilers e.g. (Visual Studio before 7.1 needs a special portable syntax) but have not found any information on std::tr1::function regarding this subject. Are there any important differences concerning memory usage, speed and compatibility between the two ?

Edit: I am currently using gcc 4.7 but the code should also compile on Visual Studio and preferably also slightly more dated versions like 2005

  • 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-08T18:48:28+00:00Added an answer on June 8, 2026 at 6:48 pm

    What did you read? What do you mean by tricky? Are you referring to some ancient compilers only supporting the boost::function1<void, int> form rather than boost::function<void(int)> form?

    std::tr1::function should be provided by your compiler, so if your compiler provides it at all then it should work perfectly, and not be “tricky” (whatever you mean by that.)

    Asking if there are differences between Boost’s specific implementation and an interface specification, which is not an implementation, doesn’t make sense. One implementation could be similar to Boost’s and have no substantial differences and another implementation could be completely different. GCC’s std::tr1::function was contributed by the author of Boost.Function, so it’s very similar.

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

Sidebar

Related Questions

I'm using variant a lot in my code and I need to make comparisons
I make a lot of use of boost::scoped_ptr in my code and it is
I am trying to use boost::atomic to do multithreading synchronization on linux. But, the
I have a piece of templated code that is never run, but is compiled.
I have a program where I use boost::threads for multi threading. Unfortunately drd (
Here is my dilemma: I really like lambda and have been using Boost.Fusion and
For some time now I have been googling a lot to get to know
I wrote a c++ program using boost library in Xcode. Here is my code.
I use boost trim function and find it perform very well in single-thread environment.
I use boost::shared_ptr in my application in C++. The memory problem is really serious,

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.