Ticket #47555

Qt: "implicit capture of 'this' with '[=]'is deprecated in C++20"

Open Date: 2023-03-11 11:40 Last Update: 2023-03-22 18:54

Reporter:
Owner:
Type:
Status:
Closed
Component:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
4

Details

Qt-client build with latest C++ standards gives deprecation warnings about capturing 'this' with '[=]'.

I think this is a deprecation between freeciv-3.0 and freeciv-3.1 (former does not use '[=]' at all)

Ticket History (3/9 Histories)

2023-03-11 11:40 Updated by: cazfi
  • New Ticket "Qt: "implicit capture of 'this' with '[=]'is deprecated in C++20"" created
2023-03-18 11:08 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
2023-03-20 14:11 Updated by: cazfi
  • Resolution Update from Accepted to None
Comment

Breaks clang builds. Seems like configure check is not strict enough.

2023-03-20 23:09 Updated by: cazfi
  • Resolution Update from None to Accepted
Comment

Reply To cazfi

Breaks clang builds. Seems like configure check is not strict enough.

Attached version uses -Werror also configure time.

2023-03-22 18:54 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login