Boost logo

Boost Users :

Subject: Re: [Boost-users] multiprecision -- eigen matrices using dynamically allocated variable-precision mpfr_float
From: Daniel Brake (danielthebrake_at_[hidden])
Date: 2015-04-15 14:35:38


Hi John,

> Can you try building with BOOST_NO_CXX11_RVALUE_REFERENCES defined and
see if that fixes the issue?

I assumed you meant to compile my executable, not all of boost and then my
executable. I have attempted to compile my program with #define
BOOST_NO_CXX11_RVALUE_REFERENCES, defined prior to my #inclusions, and I
get two compiler errors. I'm using clang-600.0.57. Here are the errors:

In file included from src/nameomitted/nameomitted.cpp:10:
In file included from /usr/local/include/boost/multiprecision/number.hpp:22:
In file included from
/usr/local/include/boost/multiprecision/detail/generic_interconvert.hpp:9:
In file included from
/usr/local/include/boost/multiprecision/detail/default_ops.hpp:9:
In file included from
/usr/local/include/boost/math/policies/error_handling.hpp:31:
In file included from /usr/local/include/boost/format.hpp:38:
In file included from /usr/local/include/boost/format/internals.hpp:20:
In file included from /usr/local/include/boost/optional.hpp:15:
/usr/local/include/boost/optional/optional.hpp:1010:5: error: unknown type
name 'reference_type_of_temporary_wrapper'
    reference_type_of_temporary_wrapper operator *() && { return
boost::move(this->get()) ; }
    ^
/usr/local/include/boost/optional/optional.hpp:1033:5: error: unknown type
name 'reference_type_of_temporary_wrapper'
    reference_type_of_temporary_wrapper value() &&

I looked everywhere I could for solutions to this problem, and came up with
only one relevant post:
http://stackoverflow.com/questions/27449993/boost-unknown-type-name-reference-type-of-temporary-wrapper

I hope this compiler error helps. If I misunderstood and was supposed to
rebuild boost with that definition, I apologize. I'm using the
Homebrew-installed Boost with all default flags and compilation options.
Thanks a lot for helping me out!

Daniel



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net