Changeset 1995ac3 in mainline


Ignore:
Timestamp:
2019-06-28T15:19:34Z (5 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
627dc41
Parents:
046b66e
Message:

cpp: fix zero length tuples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/tuple/tuple.hpp

    r046b66e r1995ac3  
    433433    };
    434434
     435    template<>
     436    class tuple<>
     437    {
     438        /**
     439         * In some cases, e.g. for async() calls
     440         * without argument to the functors, we need
     441         * zero length tuples, which are provided by
     442         * the following specialization.
     443         * (Without it we get a resolution conflict between
     444         * the default constructor and the Ts... constructor
     445         * in the original tuple.)
     446         */
     447
     448        tuple() = default;
     449
     450        void swap(tuple&) noexcept
     451        { /* DUMMY BODY */ }
     452    };
     453
    435454    /**
    436455     * 20.4.2.7, relational operators:
Note: See TracChangeset for help on using the changeset viewer.