Project

General

Profile

Bug #8467

[gcc11] Compilation error. Missing <limits> header

Added by Egor Pugin about 1 month ago. Updated 9 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
05/05/2021
Due date:
% Done:

0%

Estimated time:

Description

src/Wt/Render/WTextRenderer.C uses std::numeric_limits<double>::max() but does not have #include <limits>.

When executing: [org.sw.demo.emweb.wt.wt-4.5.0]/src/Wt/Render/WTextRenderer.C
D:/dev/swst/pkg/29/85/2c20/src/sdir/src/Wt/Render/WTextRenderer.C:235:16: error: no member named 'numeric_limits' in namespace 'std'
                               std::numeric_limits<double>::max(),
                               ~~~~~^
D:/dev/swst/pkg/29/85/2c20/src/sdir/src/Wt/Render/WTextRenderer.C:235:37: error: expected '(' for function-style cast or type construction
                               std::numeric_limits<double>::max(),
                                                   ~~~~~~^
D:/dev/swst/pkg/29/85/2c20/src/sdir/src/Wt/Render/WTextRenderer.C:235:40: error: no member named 'max' in the global namespace
                               std::numeric_limits<double>::max(),
                                                          ~~^
#1

Updated by Roel Standaert 16 days ago

  • Status changed from New to Resolved
  • Target version set to 4.6.0
#2

Updated by Roel Standaert 9 days ago

  • Target version changed from 4.6.0 to 4.5.1

Also available in: Atom PDF