Skip to content

Commit

Permalink
std::decay<...>::type -> std::decay_t<...>
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Aug 4, 2023
1 parent cf231ce commit a45cee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion final/eventloop/posix_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class SigAlrmHandler
{
public:
// Using-declaration
using HandlerReturnType = std::decay<void(int, siginfo_t*, void*)>::type;
using HandlerReturnType = std::decay_t<void(int, siginfo_t*, void*)>;

// Overloaded operators
void operator () (int, siginfo_t* signal_info, void*)
Expand Down
4 changes: 2 additions & 2 deletions final/output/tty/ftermcap.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class FTermcap final

// Using-declaration
using TCapMapType = std::array<TCapMap, 85>;
using PutCharFunc = std::decay<int(int)>::type;
using PutStringFunc = std::decay<int(const std::string&)>::type;
using PutCharFunc = std::decay_t<int(int)>;
using PutStringFunc = std::decay_t<int(const std::string&)>;

// Constructors
FTermcap() = default;
Expand Down

0 comments on commit a45cee1

Please sign in to comment.