From 1cededd37b7dd98fca189186a275eefa2a985e50 Mon Sep 17 00:00:00 2001 From: Akira Takahashi Date: Tue, 26 Sep 2023 23:34:30 +0900 Subject: [PATCH] =?UTF-8?q?error=5Fcondition=20:=20HRESULT=E3=81=AE?= =?UTF-8?q?=E8=A7=A3=E8=AA=AC=E3=83=9A=E3=83=BC=E3=82=B8=E3=82=92archive?= =?UTF-8?q?=E3=81=AB=E5=B7=AE=E3=81=97=E6=9B=BF=E3=81=88=20#1170?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/system_error/error_condition.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/system_error/error_condition.md b/reference/system_error/error_condition.md index 5f6a2ef798..f4579823de 100644 --- a/reference/system_error/error_condition.md +++ b/reference/system_error/error_condition.md @@ -16,7 +16,7 @@ namespace std { Visual C++ 2010、GCC 4.6.1では[`generic_category()`](generic_category.md)と[`system_category()`](system_category.md)の[`error_category`](error_category.md)オブジェクトは[`name()`](error_category/name.md)メンバ関数を除いて同じ挙動を行い、それぞれの[`default_error_condition()`](error_category/default_error_condition.md)メンバ関数も同じエラー値、同じカテゴリの`error_condition`を構築するため、実質[`error_code`](error_code.md)と`error_condition`は標準カテゴリでは等価な動作をする。だが、[`error_category`](error_category.md)を継承した新たなカテゴリを定義することにより、以下のようなエラーを表現することが可能となる: - 一つのエラー値で上位Nビット、下位Nビットで異なるエラー情報を表現する -- 例: WindowsのHRESULT : 「[HRESULT型とは? - UsefullCode.net](http://www.usefullcode.net/2007/03/hresult.html)」 +- 例: WindowsのHRESULT : 「[HRESULT型とは? - UsefullCode.net](https://web.archive.org/web/20230323103136/http://www.usefullcode.net/2007/03/hresult.html)」 - システムのエラーコードを汎用のエラーコードに変換し、[`error_code`](/reference/system_error/error_code.md)にはシステムの環境依存エラー値、`error_condition`には環境依存しない汎用エラー値を格納する