[MXS-4252] static_assert failed during compiling Created: 2022-08-23  Updated: 2022-08-24  Resolved: 2022-08-24

Status: Closed
Project: MariaDB MaxScale
Component/s: build
Affects Version/s: 6.4.0, 6.4.1
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Zhiwei Ye Assignee: Johan Wikman
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

CentOS 7.6
gcc 5.2



 Description   

As static_assert missing the 2nd argument in MaxScale 6.4, the build failed.

I fixed the complie error for static_assert in "https://github.com/mariadb-corporation/MaxScale/pull/262".



 Comments   
Comment by Johan Wikman [ 2022-08-23 ]

MaxScale 6 is build with C++17, which has a 1-argument static_assert().

https://en.cppreference.com/w/cpp/language/static_assert

Comment by Zhiwei Ye [ 2022-08-24 ]

Got it and thx.

Comment by Johan Wikman [ 2022-08-24 ]

MaxScale 6 is built with C++17, which supports this kind of usage of static_assert.

Generated at Thu Feb 08 04:27:18 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.