Sprout/sprout/utility/any_convertible.hpp

20 lines
380 B
C++
Raw Normal View History

2012-11-13 13:17:10 +00:00
#ifndef SPROUT_UTILITY_ANY_CONVERTIBLE_HPP
#define SPROUT_UTILITY_ANY_CONVERTIBLE_HPP
#include <sprout/config.hpp>
namespace sprout {
//
// any_convertible
//
struct any_convertible {
public:
template<typename T>
SPROUT_CONSTEXPR operator T() const {
return T();
}
};
} // namespace sprout
#endif // #ifndef SPROUT_UTILITY_ANY_CONVERTIBLE_HPP