-
Notifications
You must be signed in to change notification settings - Fork 67
Adapt bimaps::relation::structured_pair, container::detail::pair, and compressed_pair #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CromwellEnage
wants to merge
2
commits into
boostorg:develop
Choose a base branch
from
CromwellEnage:new_pairs
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,31 @@ | ||
| /*============================================================================= | ||
| /*============================================================================ | ||
| Copyright (c) 2001-2011 Joel de Guzman | ||
| Copyright (c) 2005-2006 Dan Marsden | ||
| Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
| file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
| ==============================================================================*/ | ||
| Distributed under the Boost Software License, Version 1.0. | ||
| (See accompanying file LICENSE_1_0.txt or copy at | ||
| http://www.boost.org/LICENSE_1_0.txt) | ||
| ============================================================================*/ | ||
| #if !defined(BOOST_FUSION_ADAPTED_30122005_1420) | ||
| #define BOOST_FUSION_ADAPTED_30122005_1420 | ||
|
|
||
| #include <boost/fusion/support/config.hpp> | ||
| #include <boost/fusion/adapted/adt.hpp> | ||
| #include <boost/fusion/adapted/array.hpp> | ||
| #include <boost/fusion/adapted/boost_array.hpp> | ||
| #include <boost/fusion/adapted/boost_tuple.hpp> | ||
| #include <boost/fusion/adapted/mpl.hpp> | ||
| #include <boost/fusion/adapted/std_pair.hpp> | ||
| #include <boost/fusion/adapted/boost_bimap_pair.hpp> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking about it some more, perhaps it's good to have a preprocessor define for bringing these in? Perhaps initially undefined. E.g. BOOST_FUSION_ADAPT_BIMAP |
||
| #include <boost/fusion/adapted/boost_compressed_pair.hpp> | ||
| #include <boost/fusion/adapted/boost_container_pair.hpp> | ||
| #include <boost/fusion/adapted/struct.hpp> | ||
| #include <boost/fusion/support/config.hpp> | ||
|
|
||
| // The std_tuple_iterator adaptor only supports implementations | ||
| // using variadic templates | ||
| #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) | ||
| #include <boost/fusion/adapted/std_tuple.hpp> | ||
| #endif | ||
|
|
||
| #endif | ||
| #endif // include guard | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| /*============================================================================ | ||
| Copyright (c) 2013-2018 Cromwell D. Enage | ||
|
|
||
| Distributed under the Boost Software License, Version 1.0. | ||
| (See accompanying file LICENSE_1_0.txt or copy at | ||
| http://www.boost.org/LICENSE_1_0.txt) | ||
| ============================================================================*/ | ||
| #if !defined(BOOST_FUSION_ADAPTED_BOOST_BIMAP_PAIR_HPP) | ||
| #define BOOST_FUSION_ADAPTED_BOOST_BIMAP_PAIR_HPP | ||
|
|
||
| #include <boost/bimap/tags/support/default_tagged.hpp> | ||
| #include <boost/bimap/relation/member_at.hpp> | ||
|
|
||
| namespace boost { namespace fusion { namespace detail { namespace bimap_pair | ||
| { | ||
| template <typename T> | ||
| struct first_type | ||
| { | ||
| typedef typename ::boost::bimaps::tags::support::default_tagged< | ||
| T | ||
| , ::boost::bimaps::relation::member_at::left | ||
| >::type::value_type type; | ||
| }; | ||
|
|
||
| template <typename T> | ||
| struct second_type | ||
| { | ||
| typedef typename ::boost::bimaps::tags::support::default_tagged< | ||
| T | ||
| , ::boost::bimaps::relation::member_at::right | ||
| >::type::value_type type; | ||
| }; | ||
| }}}} | ||
|
|
||
| #include <boost/bimap/relation/structured_pair.hpp> | ||
| #include <boost/fusion/adapted/struct/adapt_struct.hpp> | ||
|
|
||
| BOOST_FUSION_ADAPT_TPL_STRUCT( | ||
| (T1)(T2) | ||
| , (::boost::bimaps::relation::structured_pair) | ||
| (T1) | ||
| (T2) | ||
| (boost::bimaps::relation::normal_layout) | ||
| , ( | ||
| typename ::boost::fusion::detail::bimap_pair::first_type<T1>::type | ||
| , first | ||
| ) | ||
| ( | ||
| typename ::boost::fusion::detail::bimap_pair::second_type<T2>::type | ||
| , second | ||
| ) | ||
| ) | ||
|
|
||
| BOOST_FUSION_ADAPT_TPL_STRUCT( | ||
| (T1)(T2) | ||
| , (::boost::bimaps::relation::structured_pair) | ||
| (T1) | ||
| (T2) | ||
| (boost::bimaps::relation::mirror_layout) | ||
| , ( | ||
| typename ::boost::fusion::detail::bimap_pair::second_type<T2>::type | ||
| , second | ||
| ) | ||
| ( | ||
| typename ::boost::fusion::detail::bimap_pair::first_type<T1>::type | ||
| , first | ||
| ) | ||
| ) | ||
|
|
||
| #endif // include guard | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| /*============================================================================ | ||
| Copyright (c) 2013-2018 Cromwell D. Enage | ||
|
|
||
| Distributed under the Boost Software License, Version 1.0. | ||
| (See accompanying file LICENSE_1_0.txt or copy at | ||
| http://www.boost.org/LICENSE_1_0.txt) | ||
| ============================================================================*/ | ||
| #if !defined(BOOST_FUSION_ADAPTED_BOOST_COMPRESSED_PAIR_HPP) | ||
| #define BOOST_FUSION_ADAPTED_BOOST_COMPRESSED_PAIR_HPP | ||
|
|
||
| #include <boost/fusion/adapted/adt/adapt_adt.hpp> | ||
| #include <boost/compressed_pair.hpp> | ||
| #include <boost/call_traits.hpp> | ||
|
|
||
| BOOST_FUSION_ADAPT_TPL_ADT( | ||
| (T1)(T2) | ||
| , (::boost::compressed_pair)(T1)(T2) | ||
| , ( | ||
| typename ::boost::call_traits<T1>::reference | ||
| , typename ::boost::call_traits<T1>::const_reference | ||
| , obj.first() | ||
| , obj.first() = val | ||
| ) | ||
| ( | ||
| typename ::boost::call_traits<T2>::reference | ||
| , typename ::boost::call_traits<T2>::const_reference | ||
| , obj.second() | ||
| , obj.second() = val | ||
| ) | ||
| ) | ||
|
|
||
| #endif // include guard | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| /*============================================================================ | ||
| Copyright (c) 2013-2018 Cromwell D. Enage | ||
|
|
||
| Distributed under the Boost Software License, Version 1.0. | ||
| (See accompanying file LICENSE_1_0.txt or copy at | ||
| http://www.boost.org/LICENSE_1_0.txt) | ||
| ============================================================================*/ | ||
| #if !defined(BOOST_FUSION_ADAPTED_BOOST_CONTAINER_PAIR_HPP) | ||
| #define BOOST_FUSION_ADAPTED_BOOST_CONTAINER_PAIR_HPP | ||
|
|
||
| #include <boost/fusion/adapted/struct/adapt_struct.hpp> | ||
| #include <boost/container/detail/pair.hpp> | ||
|
|
||
| BOOST_FUSION_ADAPT_TPL_STRUCT( | ||
| (T1)(T2), (::boost::container::dtl::pair)(T1)(T2), (T1, first)(T2, second) | ||
| ) | ||
|
|
||
| #endif // include guard | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /*============================================================================ | ||
| Copyright (c) 2013-2018 Cromwell D. Enage | ||
|
|
||
| Distributed under the Boost Software License, Version 1.0. | ||
| (See accompanying file LICENSE_1_0.txt or copy at | ||
| http://www.boost.org/LICENSE_1_0.txt) | ||
| ============================================================================*/ | ||
| #if !defined(BOOST_FUSION_INCLUDE_BOOST_BIMAP_PAIR_HPP) | ||
| #define BOOST_FUSION_INCLUDE_BOOST_BIMAP_PAIR_HPP | ||
|
|
||
| #include <boost/fusion/adapted/boost_bimap_pair.hpp> | ||
|
|
||
| #endif // include guard | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /*============================================================================ | ||
| Copyright (c) 2013-2018 Cromwell D. Enage | ||
|
|
||
| Distributed under the Boost Software License, Version 1.0. | ||
| (See accompanying file LICENSE_1_0.txt or copy at | ||
| http://www.boost.org/LICENSE_1_0.txt) | ||
| ============================================================================*/ | ||
| #if !defined(BOOST_FUSION_INCLUDE_BOOST_COMPRESSED_PAIR_HPP) | ||
| #define BOOST_FUSION_INCLUDE_BOOST_COMPRESSED_PAIR_HPP | ||
|
|
||
| #include <boost/fusion/adapted/boost_compressed_pair.hpp> | ||
|
|
||
| #endif // include guard | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superfluous edit?