Ticket #2019 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

Conflict with "isblank" when building using g++ 5.4.0

Reported by: riza Owned by: bennylp
Priority: normal Milestone: release-2.7
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

On g++ 5.4.0, when using locale_facets.h there is this definition:

#if __cplusplus >= 201103L
  /// Convenience interface to ctype.is(ctype_base::blank, __c).
  template<typename _CharT>
    inline bool
    isblank(_CharT __c, const locale& __loc)
    { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::blank, __c); }
#endif

Resulting a conflict with isblank Macro definition in pjlib/include/pj/compat/ctype.h.

This patch will remove the Macro definition and use it directly to pj_isblank().

Change History

comment:1 Changed 3 months ago by riza

  • Status changed from new to closed
  • Resolution set to fixed

In 5599:

Fixed #2019: Conflict with 'isblank' when using g++ 5.4.0. Thanks to Ken Mastro
for the report and suggested fix.

Note: See TracTickets for help on using tickets.