Skip to content

Commit

Permalink
uniform_real_distribution: 範囲外が出ることがある件の参照追加
Browse files Browse the repository at this point in the history
  • Loading branch information
lpha-z committed Sep 19, 2024
1 parent d9d9c67 commit 1cb0ea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reference/random/uniform_real_distribution/op_constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ int main()

## 参照

- [P0935R0 Eradicating unnecessarily explicit default constructors from the standard library](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0935r0.html)
- [P0935R0 Eradicating unnecessarily explicit default constructors from the standard library](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0935r0.html)
- [C++ の std::uniform_real_distribution はあまり信用できない。](https://qiita.com/Nabetani/items/b6b5f80c77b92ff8bd9f)
- a ≤ x < b なるx を返すはずであるが、その範囲外の値が返ってくるライブラリ実装が存在することの指摘。

2 comments on commit 1cb0ea1

@faithandbrave
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これはC++26で直ってるかもしれません。
Microsoftでも同様の問題が報告されていますが、上記の仕様変更で直ったとしてcloseされています

@faithandbrave
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

そんなことはなかった。
MSVCの最新でも変わってないですね。

Please sign in to comment.