Files
scylladb/core
Nadav Har'El 7a84dff0b2 sstring: constructor from C string
The constructor from "const char_type *" wouldn't really work when
char_type != char, because strlen() won't work on such pointers.

It is more convenient to have a constructor from an ordinary const char *
(e.g., a C string literal), and solve the type problem with an ugly cast.

This only makes sense when sizeof(char_type)==1 (i.e., it is char, unsigned
char, or signed char), but I think we make this assumption in other places
as well (e.g., in determining the size we need to allocate).

Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
2014-12-29 17:29:32 +02:00
..
2014-10-05 18:09:09 +03:00
2014-10-22 16:37:36 +03:00
2014-10-05 19:58:12 +03:00
2014-12-09 10:08:48 +02:00
2014-11-05 11:35:50 +02:00
2014-10-30 14:08:23 +02:00
2014-12-15 19:39:33 +08:00
2014-12-29 17:29:32 +02:00
2014-10-21 16:58:35 +02:00