Boost logo

Boost :

From: joel de guzman (joel_at_[hidden])
Date: 2001-05-22 06:26:21

----- Original Message -----
From: "Vesa Karvonen"

> Where oppar, comma and clpar are defined something like this:
> Ch<'('> oppar;
> Ch<')'> clpar;
> Ch<','> comma;
> (This would be different from Spirit.)

Actually, I did that before. Yet it doesn't fit well with
Strings. Example:

Str<"Hello"> is not legal. It has to be Str<cp> where cp
is a char const*.

... Also, I want to use plain literals in binary expressions.
This is OK if one, but not both, are literals:

a - 'x'; // ok
'a' | 'b' // nope!

In many cases, like in your example, only one
is a literal.

Joel de Guzman

Boost list run by bdawes at, gregod at, cpdaniel at, john at