Boost logo

Boost :

Subject: [boost] [preprocessor] Get last token
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2011-11-28 05:18:21

Is it possible to extract the last token from a list of space separated

LAST_TOKEN(a b) // expands to b
LAST_TOKEN(blah blah b) // expands to b
LAST_TOKEN(* & b) // expands to b

Roman Perepelitsa.

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