Skip to content
Merged
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
1 change: 1 addition & 0 deletions doc/changelog.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Changes prepared for WebCPP's independent Cobalt integration.
* Fixed SSL transfer cancellation and socket ownership after moving streams.
* Fixed the shipped Wasm IPv6 UDP protocol constant; native Boost behavior remains documented.
* Added target configuration, application matrices and Release performance and memory documentation.
* Changed the shipped Wasm and native SSL functions returning `boost::system::result` to `+[[nodiscard]]+`.
// end::unreleased[]
8 changes: 4 additions & 4 deletions include/webcpp/cobalt/detail/backend/channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct channel
std::coroutine_handle<void> await_suspend(std::coroutine_handle<Promise> h);
T await_resume();
std::tuple<::boost::system::error_code, T> await_resume(const struct as_tuple_tag & );
::boost::system::result<T> await_resume(const struct as_result_tag &);
[[nodiscard]] ::boost::system::result<T> await_resume(const struct as_result_tag &);
explicit operator bool() const {return chn && chn->is_open();}
};

Expand Down Expand Up @@ -149,7 +149,7 @@ struct channel
std::coroutine_handle<void> await_suspend(std::coroutine_handle<Promise> h);
void await_resume();
std::tuple<::boost::system::error_code> await_resume(const struct as_tuple_tag & );
::boost::system::result<void> await_resume(const struct as_result_tag &);
[[nodiscard]] ::boost::system::result<void> await_resume(const struct as_result_tag &);
explicit operator bool() const {return chn && chn->is_open();}
};

Expand Down Expand Up @@ -271,7 +271,7 @@ struct channel<void>
std::coroutine_handle<void> await_suspend(std::coroutine_handle<Promise> h);
WEBCPP_COBALT_BACKEND_DECL void await_resume();
WEBCPP_COBALT_BACKEND_DECL std::tuple<::boost::system::error_code> await_resume(const struct as_tuple_tag & );
WEBCPP_COBALT_BACKEND_DECL ::boost::system::result<void> await_resume(const struct as_result_tag &);
[[nodiscard]] WEBCPP_COBALT_BACKEND_DECL ::boost::system::result<void> await_resume(const struct as_result_tag &);
explicit operator bool() const {return chn && chn->is_open();}
};

Expand Down Expand Up @@ -313,7 +313,7 @@ struct channel<void>

WEBCPP_COBALT_BACKEND_DECL void await_resume();
WEBCPP_COBALT_BACKEND_DECL std::tuple<::boost::system::error_code> await_resume(const struct as_tuple_tag & );
WEBCPP_COBALT_BACKEND_DECL ::boost::system::result<void> await_resume(const struct as_result_tag &);
[[nodiscard]] WEBCPP_COBALT_BACKEND_DECL ::boost::system::result<void> await_resume(const struct as_result_tag &);
explicit operator bool() const {return chn && chn->is_open();}
};

Expand Down
2 changes: 1 addition & 1 deletion include/webcpp/cobalt/detail/backend/detail/generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ struct generator_receiver : generator_receiver_base<Yield, Push>
return {nullptr, res.value()};
}

::boost::system::result<Yield, std::exception_ptr> await_resume(const as_result_tag& )
[[nodiscard]] ::boost::system::result<Yield, std::exception_ptr> await_resume(const as_result_tag& )
{
if (cl.is_connected())
cl.clear();
Expand Down
8 changes: 4 additions & 4 deletions include/webcpp/cobalt/detail/backend/detail/promise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct promise_value_holder
std::optional<T> result;
bool result_taken = false;

::boost::system::result<T, std::exception_ptr> get_result_value()
[[nodiscard]] ::boost::system::result<T, std::exception_ptr> get_result_value()
{
result_taken = true;
BOOST_ASSERT(result);
Expand All @@ -74,7 +74,7 @@ template<>
struct promise_value_holder<void>
{
bool result_taken = false;
::boost::system::result<void, std::exception_ptr> get_result_value()
[[nodiscard]] ::boost::system::result<void, std::exception_ptr> get_result_value()
{
result_taken = true;
return {::boost::system::in_place_value};
Expand All @@ -92,7 +92,7 @@ template<typename T>
struct promise_receiver : promise_value_holder<T>
{
std::exception_ptr exception;
::boost::system::result<T, std::exception_ptr> get_result()
[[nodiscard]] ::boost::system::result<T, std::exception_ptr> get_result()
{
if (exception && !done) // detached error
return {::boost::system::in_place_error, std::exchange(exception, nullptr)};
Expand Down Expand Up @@ -220,7 +220,7 @@ struct promise_receiver : promise_value_holder<T>
return self->get_result().value(loc);
}

::boost::system::result<T, std::exception_ptr> await_resume(const as_result_tag &)
[[nodiscard]] ::boost::system::result<T, std::exception_ptr> await_resume(const as_result_tag &)
{
if (cl.is_connected())
cl.clear();
Expand Down
8 changes: 4 additions & 4 deletions include/webcpp/cobalt/detail/backend/detail/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct task_value_holder
std::optional<T> result;
bool result_taken = false;

::boost::system::result<T, std::exception_ptr> get_result_value()
[[nodiscard]] ::boost::system::result<T, std::exception_ptr> get_result_value()
{
result_taken = true;
BOOST_ASSERT(result);
Expand All @@ -72,7 +72,7 @@ template<>
struct task_value_holder<void>
{
bool result_taken = false;
::boost::system::result<void, std::exception_ptr> get_result_value()
[[nodiscard]] ::boost::system::result<void, std::exception_ptr> get_result_value()
{
result_taken = true;
return {::boost::system::in_place_value};
Expand All @@ -92,7 +92,7 @@ template<typename T>
struct task_receiver : task_value_holder<T>
{
std::exception_ptr exception;
::boost::system::result<T, std::exception_ptr> get_result()
[[nodiscard]] ::boost::system::result<T, std::exception_ptr> get_result()
{
if (exception && !done) // detached error
return {::boost::system::in_place_error, std::exchange(exception, nullptr)};
Expand Down Expand Up @@ -204,7 +204,7 @@ struct task_receiver : task_value_holder<T>
return self->get_result().value(loc);
}

::boost::system::result<T, std::exception_ptr> await_resume(const as_result_tag &)
[[nodiscard]] ::boost::system::result<T, std::exception_ptr> await_resume(const as_result_tag &)
{
if (cl.is_connected())
cl.clear();
Expand Down
2 changes: 1 addition & 1 deletion include/webcpp/cobalt/detail/backend/detail/thread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ struct thread_awaitable
std::rethrow_exception(ee);
}

::boost::system::result<void, std::exception_ptr> await_resume(const as_result_tag &)
[[nodiscard]] ::boost::system::result<void, std::exception_ptr> await_resume(const as_result_tag &)
{
if (cl.is_connected())
cl.clear();
Expand Down
4 changes: 2 additions & 2 deletions include/webcpp/cobalt/detail/backend/io/acceptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ struct BOOST_SYMBOL_VISIBLE acceptor

WEBCPP_COBALT_BACKEND_IO_DECL acceptor(const ::webcpp::cobalt::executor & executor = this_thread::get_executor());
WEBCPP_COBALT_BACKEND_IO_DECL acceptor(endpoint ep, const ::webcpp::cobalt::executor & executor = this_thread::get_executor());
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> bind(endpoint ep);
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> listen(int backlog = max_listen_connections); // int backlog = net::max_backlog()
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> bind(endpoint ep);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> listen(int backlog = max_listen_connections); // int backlog = net::max_backlog()
WEBCPP_COBALT_BACKEND_IO_DECL endpoint local_endpoint();
private:
struct WEBCPP_COBALT_BACKEND_IO_DECL accept_op final : op<::boost::system::error_code>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct BOOST_SYMBOL_VISIBLE datagram_socket final : socket


#if defined(WEBCPP_ASIO_BACKEND_HAS_LOCAL_SOCKETS)
inline ::boost::system::result<std::pair<datagram_socket, datagram_socket>> make_pair(decltype(local_datagram) protocol)
[[nodiscard]] inline ::boost::system::result<std::pair<datagram_socket, datagram_socket>> make_pair(decltype(local_datagram) protocol)
{
std::pair<datagram_socket, datagram_socket> res;
auto c = connect_pair(protocol, res.first, res.second);
Expand Down
20 changes: 10 additions & 10 deletions include/webcpp/cobalt/detail/backend/io/file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,24 +102,24 @@ struct BOOST_SYMBOL_VISIBLE file
#else
using native_handle_type = ::webcpp::asio_backend::basic_file<executor>::native_handle_type;
#endif
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(const native_handle_type & native_file);
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(const native_handle_type & native_file);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();

WEBCPP_COBALT_BACKEND_IO_DECL executor get_executor();
WEBCPP_COBALT_BACKEND_IO_DECL bool is_open() const;

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();
WEBCPP_COBALT_BACKEND_IO_DECL native_handle_type native_handle();

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> open(const char * path, flags open_flags);
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> open(const std::string & path, flags open_flags);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> open(const char * path, flags open_flags);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> open(const std::string & path, flags open_flags);

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> resize(std::uint64_t n);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> resize(std::uint64_t n);

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<std::uint64_t> size() const;
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> sync_all();
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> sync_data();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<std::uint64_t> size() const;
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> sync_all();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> sync_data();

#if defined(WEBCPP_ASIO_BACKEND_HAS_FILE)
file(::webcpp::asio_backend::basic_file<executor> & file) : file_(file) {}
Expand Down
18 changes: 9 additions & 9 deletions include/webcpp/cobalt/detail/backend/io/pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace webcpp::cobalt::io
{


WEBCPP_COBALT_BACKEND_IO_DECL
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL
::boost::system::result<std::pair<struct readable_pipe, struct writable_pipe>> pipe(
const executor & executor = this_thread::get_executor()
);
Expand All @@ -40,16 +40,16 @@ struct BOOST_SYMBOL_VISIBLE readable_pipe final : read_stream
WEBCPP_COBALT_BACKEND_IO_DECL readable_pipe(native_handle_type native_file, const ::webcpp::cobalt::executor & executor = this_thread::get_executor());
WEBCPP_COBALT_BACKEND_IO_DECL readable_pipe(readable_pipe && sf) noexcept;

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(native_handle_type native_file);
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(native_handle_type native_file);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();

WEBCPP_COBALT_BACKEND_IO_DECL executor get_executor();
WEBCPP_COBALT_BACKEND_IO_DECL bool is_open() const;

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();

WEBCPP_COBALT_BACKEND_IO_DECL native_handle_type native_handle();
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();

[[nodiscard]] WEBCPP_COBALT_BACKEND_MSVC_NOINLINE read_op read_some(mutable_buffer_sequence buffer)
{
Expand All @@ -75,8 +75,8 @@ struct BOOST_SYMBOL_VISIBLE writable_pipe final : write_stream
WEBCPP_COBALT_BACKEND_IO_DECL writable_pipe(native_handle_type native_file, const ::webcpp::cobalt::executor & executor = this_thread::get_executor());
WEBCPP_COBALT_BACKEND_IO_DECL writable_pipe(writable_pipe && sf) noexcept;

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(native_handle_type native_file);
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(native_handle_type native_file);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();

WEBCPP_COBALT_BACKEND_IO_DECL executor get_executor();
WEBCPP_COBALT_BACKEND_IO_DECL bool is_open() const;
Expand All @@ -86,11 +86,11 @@ struct BOOST_SYMBOL_VISIBLE writable_pipe final : write_stream
return {buffer, this, initiate_write_some_};
}

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();

WEBCPP_COBALT_BACKEND_IO_DECL native_handle_type native_handle();

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();

private:
WEBCPP_COBALT_BACKEND_IO_DECL static void initiate_write_some_(void *, const_buffer_sequence, webcpp::cobalt::completion_handler<::boost::system::error_code, std::size_t>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ struct BOOST_SYMBOL_VISIBLE seq_packet_socket final : socket
};


inline ::boost::system::result<std::pair<seq_packet_socket, seq_packet_socket>> make_pair(decltype(local_seqpacket) protocol)
[[nodiscard]] inline ::boost::system::result<std::pair<seq_packet_socket, seq_packet_socket>> make_pair(decltype(local_seqpacket) protocol)
{
std::pair<seq_packet_socket, seq_packet_socket> res;
auto c = connect_pair(protocol, res.first, res.second);
Expand Down
4 changes: 2 additions & 2 deletions include/webcpp/cobalt/detail/backend/io/serial_port.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ namespace webcpp::cobalt::io

struct BOOST_SYMBOL_VISIBLE serial_port final : stream
{
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> close();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> cancel();
WEBCPP_COBALT_BACKEND_IO_DECL bool is_open() const;

[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> send_break();
Expand Down
6 changes: 3 additions & 3 deletions include/webcpp/cobalt/detail/backend/io/socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ struct BOOST_SYMBOL_VISIBLE socket
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<endpoint> remote_endpoint() const;


WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(protocol_type protocol, native_handle_type native_handle);
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> assign(protocol_type protocol, native_handle_type native_handle);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<native_handle_type> release();

/// copied from what asio does
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<std::size_t> bytes_readable();
Expand Down Expand Up @@ -151,7 +151,7 @@ struct BOOST_SYMBOL_VISIBLE socket
::webcpp::asio_backend::basic_socket<protocol_type, executor> & socket_;
};

WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> connect_pair(protocol_type protocol, socket & socket1, socket & socket2);
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<void> connect_pair(protocol_type protocol, socket & socket1, socket & socket2);


}
Expand Down
6 changes: 3 additions & 3 deletions include/webcpp/cobalt/detail/backend/io/ssl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,19 @@ struct BOOST_SYMBOL_VISIBLE stream final : private detail::stream_impl, socket,

template<typename VerifyCallback>
requires requires (VerifyCallback & cb, ::webcpp::asio_backend::ssl::verify_context & ctx) {{cb(true, ctx)} -> std::same_as<bool>;}
::boost::system::result<void> set_verify_callback(VerifyCallback vc)
[[nodiscard]] ::boost::system::result<void> set_verify_callback(VerifyCallback vc)
{
::boost::system::error_code ec;
stream_socket_.set_verify_callback(std::move(vc), ec);
return ec ? ec : ::boost::system::result<void>();
}

WEBCPP_COBALT_BACKEND_SSL_DECL
::boost::system::result<void> set_verify_depth(int depth);
[[nodiscard]] ::boost::system::result<void> set_verify_depth(int depth);


WEBCPP_COBALT_BACKEND_SSL_DECL
::boost::system::result<void> set_verify_mode(verify depth);
[[nodiscard]] ::boost::system::result<void> set_verify_mode(verify depth);

private:

Expand Down
2 changes: 1 addition & 1 deletion include/webcpp/cobalt/detail/backend/io/stream_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct BOOST_SYMBOL_VISIBLE stream_file : file, stream
{
return {buffer, this, initiate_read_some_};
}
WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<std::uint64_t> seek(
[[nodiscard]] WEBCPP_COBALT_BACKEND_IO_DECL ::boost::system::result<std::uint64_t> seek(
std::int64_t offset,
seek_basis whence);

Expand Down
2 changes: 1 addition & 1 deletion include/webcpp/cobalt/detail/backend/io/stream_socket.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct BOOST_SYMBOL_VISIBLE stream_socket final : socket, stream


#if defined(WEBCPP_ASIO_BACKEND_HAS_LOCAL_SOCKETS)
inline ::boost::system::result<std::pair<stream_socket, stream_socket>> make_pair(decltype(local_stream) protocol)
[[nodiscard]] inline ::boost::system::result<std::pair<stream_socket, stream_socket>> make_pair(decltype(local_stream) protocol)
{
std::pair<stream_socket, stream_socket> res;
auto c = connect_pair(protocol, res.first, res.second);
Expand Down
6 changes: 3 additions & 3 deletions include/webcpp/cobalt/detail/native_ssl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ struct BOOST_SYMBOL_VISIBLE stream final : private detail::stream_impl, socket,

template<typename VerifyCallback>
requires requires (VerifyCallback & cb, asio::ssl::verify_context & ctx) {{cb(true, ctx)} -> std::same_as<bool>;}
::boost::system::result<void> set_verify_callback(VerifyCallback vc)
[[nodiscard]] ::boost::system::result<void> set_verify_callback(VerifyCallback vc)
{
::boost::system::error_code ec;
stream_socket_.set_verify_callback(std::move(vc), ec);
return ec ? ec : ::boost::system::result<void>();
}

BOOST_COBALT_SSL_DECL
::boost::system::result<void> set_verify_depth(int depth);
[[nodiscard]] ::boost::system::result<void> set_verify_depth(int depth);


BOOST_COBALT_SSL_DECL
::boost::system::result<void> set_verify_mode(verify depth);
[[nodiscard]] ::boost::system::result<void> set_verify_mode(verify depth);

private:

Expand Down
3 changes: 3 additions & 0 deletions meta/lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"nodiscard-results": "a dropped result, an I/O call's or an awaited operation's, would pass as a success"
}
6 changes: 5 additions & 1 deletion upstream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ python3 upstream/sync.py --boost-include /path/to/boost/include --boost-source /
Do not edit generated files. Original copyright and Boost Software License
notices remain in every derived implementation. The generator also annotates
two unused protocol tag parameters and scopes the Clang Wasm entry-point
diagnostic; these changes do not alter their API or runtime behavior.
diagnostic; these changes do not alter their API or runtime behavior. It
declares `[[nodiscard]]` every function of the shipped headers that returns
`boost::system::result`, which has no `[[nodiscard]]` of its own, so that a
dropped result is diagnosed rather than passing as a success; a friend
declaration cannot carry the attribute and keeps the first declaration's.
Loading
Loading