From bada6666c70977a058755ccf232e7d67b24adeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 15:21:29 +0200 Subject: New upstream release --- libcult/cult/cli/options-parser.txx | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 libcult/cult/cli/options-parser.txx (limited to 'libcult/cult/cli/options-parser.txx') diff --git a/libcult/cult/cli/options-parser.txx b/libcult/cult/cli/options-parser.txx deleted file mode 100644 index bd8172a..0000000 --- a/libcult/cult/cli/options-parser.txx +++ /dev/null @@ -1,34 +0,0 @@ -// file : cult/cli/options-parser.txx -// author : Boris Kolpackov -// copyright : Copyright (c) 2005-2010 Boris Kolpackov -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file - -namespace Cult -{ - namespace CLI - { - // OptionParserBase - // - template - T OptionParserBase:: - parse (Char const* o, Scanner& s) - { - Char const* v (s.next ()); - - //@@ "expected something after --option"? - // - if (v == Scanner::eos) - throw OptionFormat (o); - - T r; - std::istringstream is (v); - is >> r; - - if (is.fail () || !is.eof ()) - throw OptionFormat (o); - - return r; - } - } -} - -- cgit v1.2.3