Delete the non-char integeral forms of fbstring::operator=
[folly.git] / folly / test / FBStringTest.cpp
index 2c867dd1d230b8d283a815a6c14a698891960771..c2110d1f7830c1d0970cc4be10de0ef088d544d6 100644 (file)
@@ -208,7 +208,8 @@ template <class String> void clause11_21_4_2_lprime(String & test) {
 }
 template <class String> void clause11_21_4_2_m(String & test) {
   // Assignment from char
-  test = random('a', 'z');
+  using value_type = typename String::value_type;
+  test = random(static_cast<value_type>('a'), static_cast<value_type>('z'));
 }
 template <class String> void clause11_21_4_2_n(String & test) {
   // Assignment from initializer_list<char>