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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:16:51+00:00 2026-05-27T10:16:51+00:00

Lately I read this post: How do I use boost.lambda with boost.thread to get

  • 0

Lately I read this post:
How do I use boost.lambda with boost.thread to get the thread's return value?

I tried to implement the answer and it went fairly well except I get an error that I can’t solve.

My code is this:

falcon::Mesh* falcon::ResourceManager::GetMesh(const std::string& id)
{
    Mesh* meshPtr;
    boost::thread meshLoadThread(boost::lambda::var(meshPtr) = bind(&MeshManager::LoadMesh, MeshManager::GetInstance(), id));
    meshLoadThread.join();
    return meshPtr;
}

But when I try to compile, I get the following error

error C2440: '=' : cannot convert from 
    'const std::tr1::_Bind<_Result_type,_Ret,_BindN>'
 to 'falcon::Mesh *'

I know it should work normally because in the example it works too!
Anyone got any suggestions?

  • 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-27T10:16:52+00:00Added an answer on May 27, 2026 at 10:16 am

    You are using bind from std::tr1 (the version that comes with Visual Studio).

    You need to use the version of bind that is part of the Boost.Lambda library, i.e. boost::lambda::bind. Note that this is not the same as boost::bind.

    You will need to #include <boost/lambda/bind.hpp>.

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

Sidebar

Related Questions

Lately I often have to read Java code like this: LinkedHashMap<String, Integer> totals =
This new feature is really convenient. Lately I read the document of the Microsoft
Lately I've read C# in Depth and it taught me about lambda expression, I've
I've seen binary trees and binary searching mentioned in several books I've read lately,
I have read a lot about the Java class loading process lately. Often I
Ok so I've been looking into interpolation lately. Sadly almost every article I've read
First of all, this is a follow-up question to Should I use WCF or
I've lately read about the MvcMiniProfiler, which I found really useful. However, we are
I've been experimenting with Clojure's multithreading features lately and trying to implement a simple
Lately, we've been seeing exceptions like this in our .NET (.asmx) webservices: System.Web.Services.Protocols.SoapException: Server

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.