diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-11-13 16:00:23 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-11-14 18:35:59 +0000 |
commit | a52d7861edfb5956de38ba80015c4dd0b596259b (patch) | |
tree | 5b863ecd1ba5205526fb7c0811685dc4af629da9 /src | |
parent | 79af4ec056b6301752ee750f04192d170f9c1823 (diff) |
Fix compile issue with gcc 9
It appears messenne_twisters in the latest libstdc++ has one more
requirement before it is willing to construct with our
SystemGenerator struct as an sseq provider.
Change-Id: If38151d1fa6f40a80274acc26d9ed6b4ac6049fe
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/global/qrandom.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/global/qrandom.cpp b/src/corelib/global/qrandom.cpp index 23e5e499b2..03534cf453 100644 --- a/src/corelib/global/qrandom.cpp +++ b/src/corelib/global/qrandom.cpp @@ -218,6 +218,7 @@ struct QRandomGenerator::SystemGenerator #endif // Q_OS_WINRT static SystemGenerator &self(); + typedef quint32 result_type; void generate(quint32 *begin, quint32 *end) Q_DECL_NOEXCEPT_EXPR(FillBufferNoexcept); // For std::mersenne_twister_engine implementations that use something |