Commit graph

2 commits

Author SHA1 Message Date
Alistair Riddoch
94f66120d7 Add specialisations for strings
Compose::arg's default implementation is inefficient for strings, and
fails if the string is empty. This patch provides an overload, and a template
specialisation for the char * and string case removing both the redundant
conversion, and the check for empty string.
2012-12-10 22:18:03 +00:00
Al Riddoch
aef624468b 2005-09-07 Al Riddoch <alriddoch@zepler.org>
* common/compose.hpp: Add Ole Laursen's fine string composition
	  library for improved messages.

	* rulesets/Character.cpp: Fix inverted check for string pos,
	  and add a clearer error message when it fails, using
	  compose.
2005-09-07 17:18:27 +00:00