Changeset bc7ec7c in mainline for uspace/lib/cpp/src/new.cpp


Ignore:
Timestamp:
2018-07-05T21:41:17Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2084bfcd
Parents:
ac47ba95
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-10-13 17:52:51)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:17)
Message:

cpp: moved new to impl/new.hpp and added missing C++14 delete operators that are used on user defined incomplete types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/src/new.cpp

    rac47ba95 rbc7ec7c  
    100100}
    101101
    102 void operator delete(void* ptr)
     102void operator delete(void* ptr) noexcept
    103103{
    104104    if (ptr)
     
    106106}
    107107
    108 void operator delete[](void* ptr)
     108void operator delete(void* ptr, std::size_t ignored) noexcept
    109109{
    110110    ::operator delete(ptr);
    111111}
     112
     113void operator delete[](void* ptr) noexcept
     114{
     115    ::operator delete(ptr);
     116}
     117
     118void operator delete[](void* ptr, std::size_t ignored) noexcept
     119{
     120    ::operator delete(ptr);
     121}
Note: See TracChangeset for help on using the changeset viewer.