]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: provide an out-of-class definition for MAX_DESCRIPTION_OFFSET 6557/head
authorIlya Dryomov <idryomov@redhat.com>
Thu, 12 Nov 2015 13:38:05 +0000 (14:38 +0100)
committerIlya Dryomov <idryomov@redhat.com>
Thu, 12 Nov 2015 16:59:19 +0000 (17:59 +0100)
std::min() takes its parameters by reference, so provide a definition
for OptionPrinter::MAX_DESCRIPTION_OFFSET constant.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
src/tools/rbd/OptionPrinter.cc

index a0c6049682b192305f760a553c4b20b2404dad3f..1033b53be703b2e59c6a295622d48e218ab46894 100644 (file)
@@ -11,6 +11,8 @@ namespace po = boost::program_options;
 const std::string OptionPrinter::POSITIONAL_ARGUMENTS("Positional arguments");
 const std::string OptionPrinter::OPTIONAL_ARGUMENTS("Optional arguments");
 
+const size_t OptionPrinter::MAX_DESCRIPTION_OFFSET;
+
 OptionPrinter::OptionPrinter(const OptionsDescription &positional,
                              const OptionsDescription &optional)
   : m_positional(positional), m_optional(optional) {