Changeset 0893dd23 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:22Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55d6223
Parents:
bd2baf8
git-author:
Dzejrou <dzejrou@…> (2018-04-30 21:19:52)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
Message:

cpp: fixed enable_ifs

File:
1 edited

Legend:

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

    rbd2baf8 r0893dd23  
    264264            }
    265265
    266             template<
    267                 class T,
    268                 class = enable_if_t<is_constructible_v<value_type, T&&>, void>
    269             >
    270             pair<iterator, bool> insert(T&& val)
     266            template<class T>
     267            pair<iterator, bool> insert(
     268                enable_if_t<is_constructible_v<value_type, T&&>, T&&> val)
    271269            {
    272270                return emplace(forward<T>(val));
     
    283281            }
    284282
    285             template<
    286                 class T,
    287                 class = enable_if_t<is_constructible_v<value_type, T&&>, void>
    288             >
    289             iterator insert(const_iterator hint, T&& val)
     283            template<class T>
     284            iterator insert(
     285                const_iterator hint,
     286                enable_if_t<is_constructible_v<value_type, T&&>, T&&> val
     287            )
    290288            {
    291289                return emplace_hint(hint, forward<T>(val));
     
    940938            }
    941939
    942             template<
    943                 class T,
    944                 class = enable_if_t<is_constructible_v<value_type, T&&>, void>
    945             >
    946             iterator insert(T&& val)
     940            template<class T>
     941            iterator insert(
     942                enable_if_t<is_constructible_v<value_type, T&&>, T&&> val
     943            )
    947944            {
    948945                return emplace(forward<T>(val));
     
    959956            }
    960957
    961             template<
    962                 class T,
    963                 class = enable_if_t<is_constructible_v<value_type, T&&>, void>
    964             >
    965             iterator insert(const_iterator hint, T&& val)
     958            template<class T>
     959            iterator insert(
     960                const_iterator hint,
     961                enable_if_t<is_constructible_v<value_type, T&&>, T&&> val
     962            )
    966963            {
    967964                return emplace_hint(hint, forward<T>(val));
Note: See TracChangeset for help on using the changeset viewer.