|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-09-01 17:20:55
David Abrahams wrote:
>
> on Sat Sep 01 2007, Chris Lattner <clattner-AT-apple.com> wrote:
>
>> Can you give me a specific example of where making the entire lexer a
>> template would be more useful than adding a couple of virtual method
>> calls? It isn't meaningful to lex anything other than a sequence of
>> char's
>
> You're serious? It's meaningless to lex UTF-32?
Do you expect a modern compiler to include those specialization:
- lexer<ascii>
- lexer<utf8>
- lexer<utf32>
- lexer<koi8-r>
- ....
- lexer<klingon standard encoding>
all together? How much that will be, like 1G of code space just for lexer?
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk