Why can't initialize 'char &' with a variable of type unsigned char ', while you can initialize' const char & 'with it?
Since the latter creates a temporary reference to the const link, when an unsigned char converted to char , then you cannot do with non-constant links. char , signed char and unsigned char are three different types, as described in C ++ 11 § 3.9.1:
Regular char, signed char and unsigned char are three different types
chris source share