diff options
author | tdowns <travis.downs@gmail.com> | 2017-08-06 12:55:04 -0600 |
---|---|---|
committer | tdowns <travis.downs@gmail.com> | 2017-08-06 12:55:04 -0600 |
commit | 106804a93163d5649264a1252cabf8264f3bcf09 (patch) | |
tree | 2c48bb0ff222eba6524adf4f77a508bee7c5bdb4 | |
parent | version bump (diff) | |
download | args.hxx-106804a93163d5649264a1252cabf8264f3bcf09.tar.xz |
Fix multiply defined symbols at link by adding inline, fixes #21
-rw-r--r-- | args.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -69,7 +69,7 @@ namespace args * \param string The string to count glyphs from * \return The UTF-8 glyphs in the string */ - std::string::size_type Glyphs(const std::string &string_) + inline std::string::size_type Glyphs(const std::string &string_) { std::string::size_type length = 0; for (const char c: string_) @@ -91,7 +91,7 @@ namespace args * \param the widtho f the first line, defaults to the width of the body * \return the vector of lines */ - std::vector<std::string> Wrap(const std::string &in, const std::string::size_type width, std::string::size_type firstlinewidth = 0) + inline std::vector<std::string> Wrap(const std::string &in, const std::string::size_type width, std::string::size_type firstlinewidth = 0) { // Preserve existing line breaks const auto newlineloc = in.find('\n'); @@ -1409,7 +1409,7 @@ namespace args } }; - std::ostream &operator<<(std::ostream &os, const ArgumentParser &parser) + inline std::ostream &operator<<(std::ostream &os, const ArgumentParser &parser) { parser.Help(os); return os; |