
28 Oct
2010
28 Oct
'10
2:50 p.m.
2010/10/28, Stiles Watson
Question. For the example given at the link above, it has
typedef mpl::string<'hell','o wo','rld'> hello;
Why would it not be
typedef mpl::string<'h','e','l','l','o',' ','w','o','r','l','d'> hello;
OR if the example is correct, why could you not simply do
typedef mpl::string<'hello world'> hello;
Note that they are multi-character character constants (in single quote), not strings (in quotes), and multi-character character may have at most the size of int, so you cannot have a single 'hello world'.