Skip to content

Commit f27ff5b

Browse files
Googlera-maurice
authored andcommitted
Use two-argument static_assert
One-argument `static_assert` became valid only in C++17, so it’s disallowed by http://go/cstyle#C++_Version. Switch to two-argument `static_assert`. PiperOrigin-RevId: 253274513
1 parent a837a30 commit f27ff5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

remote_config/src/remote_config_ios.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
kValueSourceDefaultValue, // FIRRemoteConfigSourceDefault
4545
kValueSourceStaticValue, // FIRRemoteConfigSourceStatic
4646
};
47-
static_assert(FIRRemoteConfigSourceRemote == 0);
48-
static_assert(FIRRemoteConfigSourceDefault == 1);
49-
static_assert(FIRRemoteConfigSourceStatic == 2);
47+
static_assert(FIRRemoteConfigSourceRemote == 0, "FIRRemoteConfigSourceRemote is not 0");
48+
static_assert(FIRRemoteConfigSourceDefault == 1, "FIRRemoteConfigSourceDefault is not 1");
49+
static_assert(FIRRemoteConfigSourceStatic == 2, "FIRRemoteConfigSourceStatic is not 2");
5050

5151
// Regular expressions used to determine if the config value is a "valid" bool.
5252
// Written to match what is used internally by the Java implementation.

0 commit comments

Comments
 (0)