From 958af1cd5939ad207b861338c1112927be18b564 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 2 Dec 2023 20:46:25 +0300 Subject: [PATCH] Use a using type alieas instead of a typedef in the docs. --- doc/unique_resource.qbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/unique_resource.qbk b/doc/unique_resource.qbk index 8a149f3..5806248 100644 --- a/doc/unique_resource.qbk +++ b/doc/unique_resource.qbk @@ -205,8 +205,8 @@ Using the resource traits allow us to further improve the example given in the p } }; - // A shorthand typedef for unique file descriptor wrappers - typedef boost::scope::unique_resource< int, fd_deleter, fd_resource_traits > unique_fd; + // A shorthand type alias for unique file descriptor wrappers + using unique_fd = boost::scope::unique_resource< int, fd_deleter, fd_resource_traits >; // Writes a string to a file void write_string(std::string const& filename, std::string const& str)