summaryrefslogtreecommitdiff
path: root/sigc++/tuple-utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix some commentsKjell Ahlstedt2022-04-272-3/+3
|
* Reformat code with make formatMurray Cumming2019-10-285-94/+121
|
* MSVC build: Add code commentsStuart Dootson2019-10-253-0/+4
|
* MSVC build: Silence 'C4100: unreferenced formal parameter' warningsStuart Dootson2019-10-253-0/+4
| | | Added 'static_cast<void>(parameter-name)' in all paths where the parameter isn't used
* MSVC build: Fix 'C4127: conditional expression is constant' warningStuart Dootson2019-10-251-5/+3
|
* tuple_transform_each(): Fix for libc++Kjell Ahlstedt2019-09-021-5/+8
| | | | | | | | | Tuples which are input data to std::tuple_cat() are not declared const. Some versions of libc++ has a bug in std::tuple_cat(): All output elements coming from a const tuple become const. It can break 'make check' when using clang++ and -stdlib=libc++. Fixes issue #25
* sigc::tuple_transform_each: std::result_of -> std::invoke_resultKjell Ahlstedt2019-02-171-2/+2
| | | | | | std::result_of is deprecated in C++17 and will be removed in C++20. Fixes issue #19
* C++17: Update tuple_transform_each().Murray Cumming2018-04-151-82/+49
| | | | | Update from murrayc-tuple-utils: https://github.com/murraycu/murrayc-tuple-utils/commits/master
* C++17: Update from murrayc-tuple-utils.Murray Cumming2018-04-153-78/+60
| | | | | | | | From https://github.com/murraycu/murrayc-tuple-utils/commits/master This also uses the C++17 nested namespace syntax. Apart from tuple_transform_each, which seems to have a memory access problem, with both g++ and clang++, in its C++17 version.
* tuple_transform_each: Don't use typename for a template template parameter.Murray Cumming2016-04-191-1/+1
|
* Use typename instead of class for all template parameters.Murray Cumming2016-04-191-1/+1
| | | | | | | | | Apart from template template parameters, which must still be class according to the C++14 standard: http://stackoverflow.com/a/11311432/1123654 though g++ and clang++ actually already supporting using typename instead by implementing N4051: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4051.html
* Revert "Always use typename rather than class for template types."Murray Cumming2016-04-192-8/+8
| | | | | | | | This reverts commit 180353986d101e367c26b3199c44c7b2e4c1e681. Because I misread https://stackoverflow.com/questions/213121/use-class-or-typename-for-template-parameters class is _still_ needed for template template parameters in C++14, though g++ and clang++ seem to support it anyway.
* Always use typename rather than class for template types.Murray Cumming2016-04-192-8/+8
| | | | | | | For consistency. As of C++14 class is not necessary even for template template parameters. We can change those few uses back to class if any (otherwise compliant-enough) compiler actually needs it. See http://stackoverflow.com/a/11311432/1123654
* Reformat .h files with clang-format.Murray Cumming2016-03-305-121/+123
|
* tuple-utils: Change license from GPL to LGPL.Murray Cumming2016-03-185-45/+50
| | | | | | | | Following the change in their source in murrayc-tuple-utils. I am the author, with some small improvements by Jonathan Wakely, who agreed to the license change via email. Bug #763616 (Dominique Leuenberger)
* tuple_transform_each(): Allow this to be a constexpr.Murray Cumming2016-03-081-2/+8
|
* tuple_for_each(): Use of constexpr.Murray Cumming2016-03-081-3/+10
|
* tuple_cdr(), tuple_start(), tuple_end(): Use of constexpr.Murray Cumming2016-03-083-5/+17
|
* Remove some now-unused tuple_type*<> type traits.Murray Cumming2016-03-073-141/+0
| | | | | | Because we now motly only need the tuple*() utilities to manipulate the actual instances. Some are still need for those tuple*() implementations.
* Update tuple-utils from murrayc-tuple-utils.Murray Cumming2016-03-071-11/+30
| | | | | tuple_transform_each() now iterates in order, instead of in reverse, though that didn't seem to matter to how we used it in libsigc++.
* Put tuple-utils into sigc::internal namespace.Murray Cumming2016-03-076-2/+26
| | | | To discourage people from using libsigc++ just for the tuple utils.
* Move all tuple_*.h files into sigc++/tuple-utils/Murray Cumming2016-03-076-0/+555