Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#ifndef GENERS_IOISSTRING_HH_
#define GENERS_IOISSTRING_HH_

#include <string>

namespace gs {
  template <class T>
  struct IOIsString {
    enum { value = 0 };
  };

  template <>
  struct IOIsString<std::string> {
    enum { value = 1 };
  };

  template <>
  struct IOIsString<const std::string> {
    enum { value = 1 };
  };

  template <>
  struct IOIsString<volatile std::string> {
    enum { value = 1 };
  };

  template <>
  struct IOIsString<const volatile std::string> {
    enum { value = 1 };
  };
}  // namespace gs

#endif  // GENERS_IOISSTRING_HH_