• R/O
  • SSH

posixpp: 提交

The main posixpp library and associated tests.


Commit MetaInfo

修订版0985bb9e2c340f181afb8ea702bbce72bb471ebf (tree)
时间2022-01-11 03:40:46
作者Eric Hopper <hopper@omni...>
CommiterEric Hopper

Log Message

Fix destructor for union to be constexpr so expected<T> destructor can be.

更改概述

差异

diff -r 9eb80934ba7d -r 0985bb9e2c34 pubincludes/posixpp/expected.h
--- a/pubincludes/posixpp/expected.h Mon May 10 09:07:00 2021 -0700
+++ b/pubincludes/posixpp/expected.h Mon Jan 10 10:40:46 2022 -0800
@@ -112,7 +112,7 @@
112112 T value_;
113113 int errcode_;
114114
115- ~anonymous() {} // Destruction handled by expected<T>
115+ constexpr ~anonymous() {} // Destruction handled by expected<T>
116116 } val_;
117117 bool has_error_;
118118 };
Show on old repository browser