Comments (8)
In boostorg/mp11@164aa37, I've split mpl.hpp
into mpl_list.hpp
and mpl_tuple.hpp
, so in case of a conflict with Fusion libraries can now include just mpl_list.hpp
and leave std::tuple
to Fusion.
from fusion.
I'm running into this issue as well.
Any advice from boost::fusion?
from fusion.
Not sure how to deal with this, yet. Have anyone asked the mpl11 devs ( pings @pdimov )? Fusion's usage looks legit. Maybe we need to include the right header instead of a forward declaration.
from fusion.
The forward declarations are correct; the problem is that both libraries try to add MPL support to std::tuple
.
The only option I see is for me to split mp11/mpl.hpp
into two parts, mpl_list.hpp
, which will add MPL support for mp_list
, and mpl_tuple.hpp
, which will contain the std::tuple
support. This will leave to the user the choice of whether to give std::tuple
to Fusion or Mp11.
from fusion.
Forgive me for not knowing the internal details of either library, but it is strange to me that boost::fusion is defining something in the boost::mpl namespace at all.
Can boost::fusion be adjusted to use a different way of doing it?
from fusion.
This is a documented MPL customization mechanism. What Fusion is doing is fine. The problem is that nobody really owns std::tuple
, as that's a standard type, not part of any library, Boost or otherwise.
from fusion.
The only option I see is for me to split
mp11/mpl.hpp
into two parts,mpl_list.hpp
, which will add MPL support formp_list
, andmpl_tuple.hpp
, which will contain thestd::tuple
support. This will leave to the user the choice of whether to givestd::tuple
to Fusion or Mp11.
Perhaps fusion can also introduce a PP macro that allows one to inhibit the std::tuple
specializations, as a workaround. or, hmmm, maybe just inhibit it all together when mp11 is detected (probably needs to test that tests are still passing as expected, or find ways to make it work with mpl11 right out of the box).
from fusion.
In boostorg/mp11@164aa37, I've split
mpl.hpp
intompl_list.hpp
andmpl_tuple.hpp
, so in case of a conflict with Fusion libraries can now include justmpl_list.hpp
and leavestd::tuple
to Fusion.
Wonderful! Thanks @pdimov
from fusion.
Related Issues (20)
- Merge to master
- Get member name of sequence defined by BOOST_FUSION_DEFINE_STRUCT_INLINE HOT 1
- boost::fusion::map or boost::fusion::map surprising behavior HOT 2
- Overzealously defining __device__ functions when compiling with nvcc HOT 3
- reverse_fold has no static assert for requiring bidirectional sequence HOT 1
- Testcase failure with optimization -O2 and -O1 in gcc and llvm
- Propose for inplace construct from Fusion Sequence
- List of non BOOST-prefixed macros
- clang-10 warning: definition of implicit copy constructor is deprecated HOT 1
- associability of single_view (and associability preservation of some algorithms)
- make_map<int>(make_vector()) cannot be compiled HOT 3
- What about "boost pfr" extension? HOT 8
- Is there a identity_view? HOT 8
- Potential non consistency in documentation HOT 2
- CI for Linux? HOT 2
- qvm not usable in spirit::x3
- Alternative way to adapt struct? HOT 3
- The result of `value_at` with `std::tuple` does not match result of `value_at` with `boost::fusion::vector` HOT 2
- Please sync main branch with develop HOT 12
- 'J': is not a valid type for non-type template parameter 'J' error in boost\fusion\container\vector\vector.hpp HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusion.