Changeset 46c7668 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:24Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
323ae805
Parents:
c7d7368
git-author:
Dzejrou <dzejrou@…> (2018-05-14 23:04:30)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: fixed enable_ifs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/unordered_map.hpp

    rc7d7368 r46c7668  
    266266            template<class T>
    267267            pair<iterator, bool> insert(
    268                 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val)
     268                T&& val,
     269                enable_if_t<is_constructible_v<value_type, T&&>>* = nullptr
     270            )
    269271            {
    270272                return emplace(forward<T>(val));
     
    284286            iterator insert(
    285287                const_iterator hint,
    286                 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val
     288                T&& val,
     289                enable_if_t<is_constructible_v<value_type, T&&>>* = nullptr
    287290            )
    288291            {
     
    940943            template<class T>
    941944            iterator insert(
    942                 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val
     945                T&& val,
     946                enable_if_t<is_constructible_v<value_type, T&&>>* = nullptr
    943947            )
    944948            {
     
    959963            iterator insert(
    960964                const_iterator hint,
    961                 enable_if_t<is_constructible_v<value_type, T&&>, T&&> val
     965                T&& val,
     966                enable_if_t<is_constructible_v<value_type, T&&>>* = nullptr
    962967            )
    963968            {
     
    11601165                    unordered_map<Key, Value, Hash, Pred, Alloc>& rhs)
    11611166    {
     1167        // TODO: this does not compare values, use is_permutation when we have it
    11621168        return lhs.table_.is_eq_to(rhs.table_);
    11631169    }
Note: See TracChangeset for help on using the changeset viewer.