C++17

2018-12-08 Thread Mojca Miklavec
Hi, What's the up-to-date recommendation for ports requiring C++17? There were several different approaches, some of them probably still in PR queue, and I kind of lost track about what a port should do now to minimize the effort & copy-paste errors, both now and in the future. (I woul

Re: C++17

2018-12-09 Thread Marcus Calhoun-Lopez
Greetings, There are two pull requests [1,2] that would allow C++17 with the line: compiler.cxx_standard 2017 There are two stumbling blocks: 1) consensus has been elusive on the default values of compiler.cxx_standard and compiler.c_standard [3,4] 2) there is a concern that the

cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ryan Schmidt
The cxx11 portgroup is fine for C++11, but what do we want to do about C++14, C++17, and future versions?

clang, c++17, std::optional, and libc++.dylib

2020-07-04 Thread Ken Cunningham
As software using c++17 is upon us, we have a slight problem with std::optional. clang has supported std::optional for some time, and clang-9.0, at least, appears to support std::optional right back to the ancient systems. however, there is one small part of std::optional, std::optional::value

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ken Cunningham
at do we want to do about C++14, > C++17, and future versions? >

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ryan Schmidt
On Feb 4, 2018, at 18:01, Ken Cunningham wrote: > On Feb 4, 2018, at 6:56 PM, Ryan Schmidt wrote: > >> The cxx11 portgroup is fine for C++11, but what do we want to do about >> C++14, C++17, and future versions? > > By providing a current clang, like 5.0, all the

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ken Cunningham
Schmidt wrote: >>> >>> The cxx11 portgroup is fine for C++11, but what do we want to do about >>> C++14, C++17, and future versions? >> >> By providing a current clang, like 5.0, all these are covered I believe. >> >> The PG is really misnameds

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ryan Schmidt
is fine for C++11, but what do we want to do about >>>> C++14, C++17, and future versions? >>> >>> By providing a current clang, like 5.0, all these are covered I believe. >>> >>> The PG is really misnamedshould be "modern compiler" PG

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ken Cunningham
gt; >>>> On Feb 4, 2018, at 18:01, Ken Cunningham wrote: >>>> >>>>> On Feb 4, 2018, at 6:56 PM, Ryan Schmidt wrote: >>>>> >>>>> The cxx11 portgroup is fine for C++11, but what do we want to do about >>>>> C++14, C++17,

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Eitan Adler
On 4 February 2018 at 16:09, Ken Cunningham wrote: > Please not more portgroups, tho. Why not? > How about we just move up that clang floor as time goes by? I'd actually be in favor of more explicit dependency usage. Either creating a new portgroup or a single generic one called compiler_featur

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ryan Schmidt
On Feb 4, 2018, at 20:21, Eitan Adler wrote: > On 4 February 2018 at 16:09, Ken Cunningham wrote: >> Please not more portgroups, tho. > > Why not? They would be rather similar to one another. https://en.wikipedia.org/wiki/Don%27t_repeat_yourself We should think about how this will work if and

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ken Cunningham
> On Feb 4, 2018, at 9:36 PM, Ryan Schmidt wrote: > > We should think about how this will work if and when it is integrated into > MacPorts base and not a portgroup. I think starting with configure.cc_std and > configure.cxx_std might work well. > I’m trying to really understand your appr

Re: cxx11 portgroup: C++11, C++14, C++17

2018-02-04 Thread Ryan Schmidt
On Feb 4, 2018, at 21:51, Ken Cunningham wrote: > > On Feb 4, 2018, at 9:36 PM, Ryan Schmidt wrote: > >> We should think about how this will work if and when it is integrated into >> MacPorts base and not a portgroup. I think starting with configure.cc_std >> and configure.cxx_std might work w

Re: clang, c++17, std::optional, and libc++.dylib

2020-07-05 Thread Chris Jones
Hi, Your optional patch looks on a quick scan ok to me. To be clear, you are proposing adding this to the llvm ports, to patch the version of the headers installed by that, right ? Chris > On 5 Jul 2020, at 6:33 am, Ken Cunningham > wrote: > > As software using c++17 is upon u

Re: clang, c++17, std::optional, and libc++.dylib

2020-07-05 Thread Ryan Schmidt
On Jul 5, 2020, at 00:33, Ken Cunningham wrote: > It is quite simple (I think) to inline a function implementing > bad_optional_access into the header. That could be used for 10.7 > to 10.12, and then all those systems could comfortably implement c++17, and > no problem. Otherwis

Re: clang, c++17, std::optional, and libc++.dylib

2020-07-05 Thread Ken Cunningham
> > Chris > >> On 5 Jul 2020, at 6:33 am, Ken Cunningham >> wrote: >> >> As software using c++17 is upon us, we have a slight problem with >> std::optional. >> >> clang has supported std::optional for some time, and clang-9.0, at

Re: clang, c++17, std::optional, and libc++.dylib

2020-07-05 Thread Ken Cunningham
12, and then all those systems could comfortably implement c++17, and >> no problem. Otherwise we have to install a newer libc++.dylib on older >> systems, which is a simple but big problem, as it were. >> >> Here’s the patch. I only speak basic c++, so improve this if you >

Re: clang, c++17, std::optional, and libc++.dylib

2020-07-05 Thread Ken Cunningham
> > Then all systems from 10.5 to current can use c++17 std::optional, and > disaster averted until the next crisis. > The next crisis will likely be std::filesystem, and there is no inlining that, btw. K