2
0
mirror of https://github.com/boostorg/hana.git synced 2026-01-19 04:12:12 +00:00

2022 Commits

Author SHA1 Message Date
Ed Catmur
bc49ee2563 Remove aligned_storage and aligned_union since C++23 (#520)
Fixes https://github.com/boostorg/hana/issues/519.
boost-1.90.0 boost-1.89.0 boost-1.90.0.beta1
2025-07-03 17:00:02 -04:00
Thomas-Barbier-1A
71ae4559f5 Don't use the deprecated form of user-defined literal operator (#532) 2025-07-03 16:55:35 -04:00
René Ferdinand Rivera Morell
275ee334d4 Add support for modular build structure. (#531) boost-1.88.0 boost-1.88.0.beta1 boost-1.87.0.beta1 boost-1.87.0 2024-08-19 11:07:58 -04:00
Rene Rivera
e66cd6bc3f This removes the superflous test project ID that will conflict with the modular project IDs for all libraries. boost-1.86.0.beta1 boost-1.86.0 boost-1.85.0.beta1 boost-1.85.0 2024-03-04 10:11:33 -05:00
Louis Dionne
e820551959 Implement type_name on GCC and fix on older Clangs boost-1.84.0 boost-1.84.0.beta1 2023-11-14 13:38:18 -10:00
Louis Dionne
f649baa2b8 Remove -Wpedantic 2023-11-14 13:38:18 -10:00
Louis Dionne
a2ca5aa559 Fix a few tests that didn't get ignored properly on Windows 2023-11-14 13:38:18 -10:00
Louis Dionne
6dd61729e1 Add a Github Actions config 2023-11-14 13:38:18 -10:00
Louis Dionne
38b7917112 Fix implementation of experimental type_name 2023-11-09 11:25:47 -10:00
Louis Dionne
adad0513b8 [README] Update how to run ctest inside the build directory 2023-11-09 11:22:56 -10:00
Louis Dionne
45550bb8ea Remove workaround in tests for old Clang 2023-11-09 11:08:04 -10:00
Louis Dionne
d3634a3e9c [README] Move "try it" link to godbolt
Wandbox is not in service anymore.

Fixes #515
boost-1.83.0 boost-1.83.0.beta1 boost-1.82.0
2023-03-17 10:00:22 -04:00
Louis Dionne
6e8a9c68bf Re-apply MSVC workaround
The master branch is open for bug fixes now.
2023-03-17 09:49:22 -04:00
Louis Dionne
d8d067bd08 Revert "Re-add MSVC workarounds that were dropped by e315075"
This reverts commit ff423df2c0.

The `master` branch is closed for the 1.82.0 beta right now, and I
missed the memo. I will re-apply once it opens up for bugfixes.
2023-03-13 13:42:03 -04:00
Louis Dionne
ff423df2c0 Re-add MSVC workarounds that were dropped by e315075
e315075 re-generated the `struct_macros.hpp` file, which had the
unfortunate side effect of dropping MSVC workarounds that had
been added in 95f8f74 because those were not added to the `.erb` file.
This adds the workarounds to the `.erb` file and re-generates the `.hpp`
file to restore the workarounds.

Thanks to @Grumpfy for pointing this out in [1].

[1]: e315075784 (commitcomment-104250393)
2023-03-13 13:30:02 -04:00
Zach Laine
944f7177e1 Add support for "0X" hex prefix. boost-1.81.0 boost-1.82.0.beta1 2022-11-15 04:16:20 -10:00
Louis Dionne
b8049374b1 Update build instructions boost-1.81.0.beta1 2022-10-21 00:08:14 -04:00
Louis Dionne
2ab7ca19a2 [NFC] Update copyright notices 2022-10-20 23:18:13 -04:00
Louis Dionne
a3107019ae The base branch is now master, and all releases are done through the Boost release process
Given the lack of bandwidth and the infrequency at which I get to look
at issues in this repo, simplifying the process of fixing stuff and
releasing is actually important. From now on, we'll just merge stuff
to master and it'll always be ready to be picked up by the next Boost
release.
2022-10-20 23:08:34 -04:00
Louis Dionne
35774d0f29 Merge branch 'develop' 2022-10-20 22:57:55 -04:00
Ed Catmur
5dcac0f20f Cast to void on discarded LHS of comma operator
to avoid warnings in clang 14:
```
In file included from test/headers/boost/hana/any.cpp:1:
In file included from include/boost/hana/any.hpp:15:
In file included from include/boost/hana/any_of.hpp:16:
In file included from include/boost/hana/at.hpp:16:
In file included from include/boost/hana/concept/iterable.hpp:20:
In file included from include/boost/hana/drop_front.hpp:20:
In file included from include/boost/hana/integral_constant.hpp:13:
In file included from include/boost/hana/bool.hpp:17:
In file included from include/boost/hana/core/to.hpp:21:
include/boost/hana/core/make.hpp:35:28: error: left operand of comma operator has no effect [-Werror,-Wunused-value]
            static_assert((sizeof...(X), false),
                           ^~~~~~~~~~~~
```
2022-10-20 22:19:10 -04:00
Ed Catmur
415ac59d38 Add missing const on operator==
identified by clang14 in C++20 mode:
```
test/issues/github_460.cpp:25:33: error: ISO C++20 considers use of overloaded operator '==' (with operand types 'SomeStruct' and 'SomeStruct') to be ambiguous despite there being a unique best viable function [-Werror,-Wambiguous-reversed-operator]
    static_assert(SomeStruct{5} == SomeStruct{5}, "");
                  ~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~
test/issues/github_460.cpp:15:20: note: ambiguity is between a regular call to this operator and a call with the argument order reversed
    constexpr bool operator==(SomeStruct const& other) {
                   ^
1 error generated.
```
2022-10-20 22:18:26 -04:00
Louis Dionne
e315075784 Generate struct_macros.hpp with 55 members by default
Fixes #493
2021-10-29 13:24:19 -04:00
Louis Dionne
998033e9db Merging 'develop' into 'master' for 1.7.1 boost-1.80.0 boost-1.78.0 boost-1.80.0.beta1 boost-1.78.0.beta1 boost-1.79.0.beta1 boost-1.79.0 2021-10-29 13:18:50 -04:00
Louis Dionne
c6a43a26d4 Bump version of Hana to 1.8.0 and clear release notes 2021-10-29 13:18:50 -04:00
Peter Dimov
e32da0feb5 Add a Boost-friendly subproject case to CMakeLists 2021-07-26 17:45:50 -04:00
Louis Dionne
9cde0cdd84 Replace namespace macros by actual namespaces
Fixes #288
2021-05-26 14:13:17 -04:00
Louis Dionne
5c28aad03b Merge develop into master boost-1.77.0.beta1 boost-1.77.0 2021-05-26 11:05:23 -04:00
Louis Dionne
f58d68b731 [Travis] Complete overhauld of CI
Drop a bunch of old compiler and tool versions with the aim of getting
the CI back into shape.
2021-05-26 10:58:47 -04:00
sbolding
9cd5744df7 Remove std::is_literal_type trait if > c++14
Supports #475

- A deprecation warning is thrown (tested on gcc11 with
std=c++17), so just remove the trait for > c++14.
2021-05-25 23:40:12 -04:00
Edward Diener
77b0f5ad6d Add "cxxstd" json field. The "cxxstd" json field is being added to each Boost library's meta json information for libraries whose minumum C++ standard compilation level is C++11 on up. The value of this field matches one of the values for 'cxxstd' in Boost.Build. The purpose of doing this is to provide information for the Boost website documentation for each library which will specify the minimum C++ standard compilation that an end-user must employ in order to use the particular library. This will aid end-users who want to know if they can successfully use a Boost library based on their C++ compiler's compilation level, without having to search the library's documentation to find this out. 2020-12-27 21:05:44 -05:00
Louis Dionne
313a1b245b Add support for C++17 inline variables
Fixes #474
2020-09-03 13:08:25 -04:00
Louis Dionne
938de69213 [version] The next version should actually have been bumped to 1.7.1 2020-09-03 11:45:25 -04:00
Louis Dionne
07eadfb31e Merging 'develop' into 'master' for 1.7.0 v1.7.0 boost-1.76.0.beta1 boost-1.76.0 boost-1.75.0.beta1 boost-1.75.0 2020-09-03 11:41:20 -04:00
Louis Dionne
3dbda68a9d Bump version of Hana to 1.6.2 and clear release notes 2020-09-03 11:41:20 -04:00
Jason Rice
4f5157bc42 Fixes operator== with std::optional
- Prevents comparable operators from considering the tag types like tuple_tag
    - Allows Struct classes to implement their own comparable operators so it can
      be used with types like std::optional
2020-09-03 11:38:27 -04:00
Zach Laine
381c76f2b2 Don't define traits::is_pod in C++20 and later, since std::is_pod is deprecated as of C++20. 2020-09-03 11:31:44 -04:00
Louis Dionne
43e87be22a [doc] Fix broken rendering of the glossary
The words of the glossary were not being printed in code font -- this
probably started happening with a newer Doxygen.
2020-08-29 16:50:14 -04:00
Louis Dionne
bf4240052b Merging 'develop' into 'master' for 1.6.1 v1.6.1 2020-08-26 14:21:04 -04:00
Louis Dionne
e5ec37c893 Bump version of Hana to 1.7.0 and clear release notes 2020-08-26 14:21:04 -04:00
Louis Dionne
28699a4a69 Add a script to help create a release of Hana 2020-08-26 14:21:01 -04:00
Louis Dionne
a482011a31 [doc] Remove references to the Homebrew formula, which doesn't exist anymore 2020-08-26 13:27:19 -04:00
Louis Dionne
baeee088f6 Bump version to 1.6.1, since 1.6.0 has already been released 2020-08-26 13:21:52 -04:00
Louis Dionne
1b91a8055d [doc] Upgrade Highcharts to 8.2.0
This resolves a security advisory about a XSS in Highcharts. This wasn't
a big problem because Highcharts is only used in Hana's documentation,
but it's still nice to fix it.
2020-08-26 12:37:30 -04:00
Louis Dionne
49e6694945 [Travis] Build documentation on OS X and allow warnings
Installing a custom Doxygen has been a problem on Linux for a while,
it keeps breaking. Instead, just use Homebrew on OS X to install Doxygen.

Also, Doxygen keeps spitting new warnings, which breaks the documentation
build. To avoid that, allow warnings when generating the documentation on
Travis.
2020-06-01 10:49:16 -04:00
Louis Dionne
a2c1d9b74d [Travis] Only test on Xcode 11
Other MacOS jobs were timing out.
2020-05-29 06:09:58 -04:00
Louis Dionne
e837a24e11 [Travis] Update Doxygen download link 2020-05-28 16:46:03 -04:00
Louis Dionne
b1db9f3d29 Remove references to std::result_of
C++20 removed std::result_of, and it's pretty important for Hana to
support C++20. We could have conditionally supported std::result_of,
however I feel like it's reasonable to require users to move away from
the trait entirely. Staying on deprecated/removing features is not a
healthy thing to do anyway.

Fixes #462
2020-05-28 16:38:12 -04:00
Louis Dionne
709c8c8aef Fix broken link in static_assert
Fixes #463
2020-04-17 09:17:31 -04:00
Louis Dionne
07b4249276 Merge develop into master with latest fixes boost-1.73.0 boost-1.72.0.beta1 boost-1.73.0.beta1 boost-1.74.0 boost-1.74.0.beta1 boost-1.72.0 2019-09-26 09:49:27 -04:00