troubleshooting Question

#include <boost/algorithm/string.hpp> produces Error 3 error C2059: syntax error : 'reinterpret_cast' \boost\function\function_template.hpp 566 1

Avatar of JPERKS1985
JPERKS1985 asked on
C++
5 Comments1 Solution1055 ViewsLast Modified:
I'm trying to include the string.hpp boost file, when I do this I get the error,

error C2059: syntax error : 'reinterpret_cast'      \boost\function\function_template.hpp      566      

This line within function_template.hpp is,

        assign_functor(FunctionObj f, function_buffer& functor, mpl::true_) const
        {
         ERROR LINE -------> new (reinterpret_cast<void*>(&functor.data)) FunctionObj(f);
        }

How can this be fixed? I'm using VS2010.
ASKER CERTIFIED SOLUTION
evilrix
Senior Software Engineer (Avast)

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros