boostorg / assign Goto Github PK
View Code? Open in Web Editor NEWBoost.org assign module
Home Page: http://boost.org/libs/assign
License: Boost Software License 1.0
Boost.org assign module
Home Page: http://boost.org/libs/assign
License: Boost Software License 1.0
Need to collect them and submit.
Admittedly this could just be a bad compiler, but this fails during CI testing.
https://ci.appveyor.com/project/jeking3/assign/build/1.0.2-develop/job/2j92ev1wnrpe677d#L1780
libs\assign\test\multi_index_container.cpp(123) : error C2440: 'initializing' : cannot convert from 'boost::assign_detail::generic_list<employee>' to 'boost::multi_index::multi_index_container<employee,boost::multi_index::indexed_by<boost::multi_index::ordered_unique<boost::multi_index::identity<employee>,boost::mpl::na,boost::mpl::na>,boost::multi_index::ordered_non_unique<boost::multi_index::tag<name,by_name,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na>,boost::multi_index::member<employee,std::string,pointer-to-member(0x4)>,boost::mpl::na>,boost::multi_index::ordered_non_unique<boost::multi_index::tag<age,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na>,boost::multi_index::member<employee,int,pointer-to-member(0x1c)>,boost::mpl::na>,boost::multi_index::sequenced<boost::multi_index::tag<as_inserted,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na>>,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na>,std::allocator<Value>>'
with
[
Value=employee
]
No constructor could take the source type, or constructor overload resolution was ambiguous
libs\assign\test\multi_index_container.cpp(138) : error C2440: 'initializing' : cannot convert from 'boost::assign_detail::generic_list<std::string>' to 'boost::multi_index::multi_index_container<std::string,boost::multi_index::indexed_by<boost::multi_index::sequenced<boost::multi_index::tag<boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na>>,boost::multi_index::ordered_non_unique<boost::multi_index::identity<std::string>,boost::mpl::na,boost::mpl::na>,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na,boost::mpl::na>,std::allocator<_Ty>>'
with
[
_Ty=std::string
]
No constructor could take the source type, or constructor overload resolution was ambiguous
call "bin.v2\standalone\msvc\msvc-12.0\msvc-setup.bat" x86 >nul
cl /Zm800 -nologo @"bin.v2\libs\assign\test\multi_index_container.test\msvc-12.0\release\cxxstd-03-iso\threading-multi\multi_index_container.obj.rsp"
...failed compile-c-c++ bin.v2\libs\assign\test\multi_index_container.test\msvc-12.0\release\cxxstd-03-iso\threading-multi\multi_index_container.obj...
I am Debian's maintainer for Boost packages.
In https://gitlab.com/hepcedar/rivet/-/blob/master/src/Tools/RivetPaths.cc#L58 Boost.Assign's operator+=
is used on std::vector<std::string>
and std::vector<std::string>
. It used to compile with Boost 1.67, but it doesn't any more with Boost 1.71. The error is
In file included from /usr/include/boost/assign/std/vector.hpp:18,
from /usr/include/boost/assign/std.hpp:18,
from /usr/include/boost/assign.hpp:19,
from ../../include/Rivet/RivetBoost.hh:6,
from ../../include/Rivet/Math/MathUtils.hh:6,
from ../../include/Rivet/Rivet.hh:42,
from RivetPaths.cc:1:
/usr/include/boost/assign/list_inserter.hpp: In instantiation of 'void boost::assign_detail::call_push_back<C>::operator()(T&&) [with T = std::vector<std::__cxx11::basic_string<char> >; C = std::vector<std::__cxx11::basic_string<char> >]':
/usr/include/boost/assign/list_inserter.hpp:414:13: required from 'void boost::assign::list_inserter<Function, Argument>::insert(boost::assign::list_inserter<Function, Argument>::single_arg_type, T&&) [with T = std::vector<std::__cxx11::basic_string<char> >; Function = boost::assign_detail::call_push_back<std::vector<std::__cxx11::basic_string<char> > >; Argument = std::__cxx11::basic_string<char>]'
/usr/include/boost/assign/list_inserter.hpp:406:13: required from 'boost::assign::list_inserter<Function, Argument>& boost::assign::list_inserter<Function, Argument>::operator()(Ts&& ...) [with Ts = {std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >}; Function = boost::assign_detail::call_push_back<std::vector<std::__cxx11::basic_string<char> > >; Argument = std::__cxx11::basic_string<char>]'
/usr/include/boost/assign/std/vector.hpp:42:30: required from 'boost::assign::list_inserter<boost::assign_detail::call_push_back<std::vector<_Tp, _Alloc> >, V> boost::assign::operator+=(std::vector<_Tp, _Alloc>&, V2&&) [with V = std::__cxx11::basic_string<char>; A = std::allocator<std::__cxx11::basic_string<char> >; V2 = std::vector<std::__cxx11::basic_string<char> >]'
RivetPaths.cc:57:28: required from here
/usr/include/boost/assign/list_inserter.hpp:91:13: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::push_back(std::vector<std::__cxx11::basic_string<char> >)'
91 | c_.push_back(boost::forward<T>(r));
| ^~
In file included from /usr/include/c++/9/vector:67,
from ../../include/Rivet/RivetSTL.hh:11,
from ../../include/Rivet/Rivet.hh:8,
from RivetPaths.cc:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::value_type = std::__cxx11::basic_string<char>]'
1184 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1184:35: note: no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'const value_type&' {aka 'const std::__cxx11::basic_string<char>&'}
1184 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_vector.h:1200:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::value_type = std::__cxx11::basic_string<char>]'
1200 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1200:30: note: no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'std::vector<std::__cxx11::basic_string<char> >::value_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
1200 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
Is this use of operator+=
legitimate? I can't find it in the documentation, but since it used to work I am wondering if the bug here is in Boost or in the using code.
Thanks.
We are in the process of making B2 build changes to all of the B2 build files
to support "modular" consumption of the Boost Libraries by users. See this list
post for some details: https://lists.boost.org/Archives/boost/2024/01/255704.php
The process requires making a variety of changes to make each Boost library
independent of the super-project structure. But the changes do not remove the
super-project structure or the comprehensive Boost release. The changes make
solely make it possible, optionally, for users, like package manages, to easily
consume libraries individually.
Generally the changes include:
Some examples of such changes:
We are asking how you would like us to handle the changes. We would prefer if
you allow the owners of the Boost.org GitHub project to make changes to B2
build files, as needed, to accomplish the changes. But understand
that you may want to manage the proposed changes yourself.
We previously sent emails to all known maintainers to fill out a form with their
preference. We are contacting you in this issue as we have not gotten a response
to that email. You can see the ongoing responses for that form and the responses
to these issues here https://github.com/users/grafikrobot/projects/1/views/6
We are now asking if you can reply directly to this issue to indicate your
preference of handling the changes. Please supply a response to this question
and close the issue (so that we can verify you are a maintainer).
How would you like the build changes to be processed?
Also please indicate any special instructions you want us to consider. Or other
information you want us to be aware of.
Thanks you, René
background: we turn missing override warnings into errors, which leads to problems when using the assign library
There is an example in the uuid test Jamfile one can follow. This will ensure each header can be included independently and each includes everything it requires. This is based on regressions in #6 that were not detected by the current build process.
The fix in the 'develop' branch is for the Embarcadero C++ clang-based compilers.
Moving ticket from trac to github: https://svn.boost.org/trac10/ticket/8238
For compilers that support std::array, can support be added to boost::assign for std::array at least with the same capabilities matching boost::array?
For example, list_of works with boost::array, but not std::array.
#6 broke older compilers
This drove addition of older compilers into CI.
per discussion, Boost.Config claims these compilers support variadic templates but their support is incomplete, and we need to do something special here. See discussion on #6.
Also see #6 (comment)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.