Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/boost/asio/local/basic_endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,26 @@ class basic_endpoint
#endif // defined(BOOST_ASIO_HAS_STRING_VIEW)

/// Copy constructor.
basic_endpoint(const basic_endpoint& other)
basic_endpoint(const basic_endpoint& other) noexcept
: impl_(other.impl_)
{
}

/// Move constructor.
basic_endpoint(basic_endpoint&& other)
basic_endpoint(basic_endpoint&& other) noexcept
: impl_(other.impl_)
{
}

/// Assign from another endpoint.
basic_endpoint& operator=(const basic_endpoint& other)
basic_endpoint& operator=(const basic_endpoint& other) noexcept
{
impl_ = other.impl_;
return *this;
}

/// Move-assign from another endpoint.
basic_endpoint& operator=(basic_endpoint&& other)
basic_endpoint& operator=(basic_endpoint&& other) noexcept
{
impl_ = other.impl_;
return *this;
Expand Down
6 changes: 3 additions & 3 deletions include/boost/asio/local/detail/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class endpoint
{
public:
// Default constructor.
BOOST_ASIO_DECL endpoint();
BOOST_ASIO_DECL endpoint() noexcept;

// Construct an endpoint using the specified path name.
BOOST_ASIO_DECL endpoint(const char* path_name);
Expand All @@ -51,14 +51,14 @@ class endpoint
#endif // defined(BOOST_ASIO_HAS_STRING_VIEW)

// Copy constructor.
endpoint(const endpoint& other)
endpoint(const endpoint& other) noexcept
: data_(other.data_),
path_length_(other.path_length_)
{
}

// Assign from another endpoint.
endpoint& operator=(const endpoint& other)
endpoint& operator=(const endpoint& other) noexcept
{
data_ = other.data_;
path_length_ = other.path_length_;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/asio/local/detail/impl/endpoint.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace asio {
namespace local {
namespace detail {

endpoint::endpoint()
endpoint::endpoint() noexcept
{
init("", 0);
}
Expand Down