aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-03-16 22:53:42 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-03-16 22:53:42 +0000
commitc62f5e6e1f457462b1cea74792833821bbea64bb (patch)
tree8c462df02fbe620b680dab49a4771f12bca12e65 /gcc
parent447d196e75d97a9ac7c6a548dc9d0fe367adf6be (diff)
downloadgcc-c62f5e6e1f457462b1cea74792833821bbea64bb.zip
gcc-c62f5e6e1f457462b1cea74792833821bbea64bb.tar.gz
gcc-c62f5e6e1f457462b1cea74792833821bbea64bb.tar.bz2
libstdc++: Add default constructor to net::service_already_exists (PR 94199)
The service_already_exists exception type specified in the TS doesn't have any constructors defined. Since its base class isn't default constructible, that means has no usable constructors. This may be a defect in the TS. This patch fixes it by adding a default constructor, but making it private. The make_service function is declared as a friend to be able to call that private constructor. PR libstdc++/94199 * include/experimental/executor (service_already_exists): Add default constructor. Declare make_service to be a friend. * testsuite/experimental/net/execution_context/make_service.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions