Added missing inline keywords.

This commit is contained in:
Antony Polukhin
2013-10-17 14:20:31 +04:00
parent 831151a92b
commit 42699990f0
3 changed files with 10 additions and 10 deletions

View File

@@ -214,7 +214,7 @@ public:
/// Method for constructing template_index instance for type T.
/// Strips const, volatile and & modifiers from T.
template <class T>
template_index template_id() BOOST_NOEXCEPT {
inline template_index template_id() BOOST_NOEXCEPT {
return template_index::construct<T>();
}
@@ -223,7 +223,7 @@ template_index template_id() BOOST_NOEXCEPT {
/// If T has no const, volatile, & and && modifiers, then returns exactly
/// the same result as in case of calling `template_id<T>()`.
template <class T>
template_index template_id_with_cvr() BOOST_NOEXCEPT {
inline template_index template_id_with_cvr() BOOST_NOEXCEPT {
return template_index::construct_with_cvr<T>();
}

View File

@@ -320,7 +320,7 @@ inline bool operator >= (type_index::stl_type_info const& lhs, type_index const&
/// Function, to get type_index for a type T. Strips const, volatile and & modifiers from T.
template <class T>
type_index type_id() BOOST_NOEXCEPT {
inline type_index type_id() BOOST_NOEXCEPT {
return type_index::construct<T>();
}
@@ -329,7 +329,7 @@ type_index type_id() BOOST_NOEXCEPT {
/// If T has no const, volatile, & and && modifiers, then returns exactly
/// the same result as in case of calling `type_id<T>()`.
template <class T>
type_index type_id_with_cvr() BOOST_NOEXCEPT {
inline type_index type_id_with_cvr() BOOST_NOEXCEPT {
return type_index::construct_with_cvr<T>();
}
@@ -337,7 +337,7 @@ type_index type_id_with_cvr() BOOST_NOEXCEPT {
/// This method available only with RTTI enabled. Without RTTI support it won't compile,
/// producing a compile-time error with message: "boost::type_id_rtti_only(T&) requires RTTI"
template <class T>
type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT {
inline type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT {
return type_index::construct_rtti_only(rtti_val);
}
@@ -345,7 +345,7 @@ type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT {
/// This method available only with RTTI enabled. Without RTTI support it won't compile,
/// producing a compile-time error with message: "boost::type_id_rtti_only(T*) requires RTTI"
template <class T>
type_index type_id_rtti_only(T* rtti_val) {
inline type_index type_id_rtti_only(T* rtti_val) {
return type_index::construct_rtti_only(rtti_val);
}

View File

@@ -33,23 +33,23 @@ namespace boost {
typedef template_index type_index;
template <class T>
type_index type_id() BOOST_NOEXCEPT {
inline type_index type_id() BOOST_NOEXCEPT {
return template_index::construct<T>();
}
template <class T>
type_index type_id_with_cvr() BOOST_NOEXCEPT {
inline type_index type_id_with_cvr() BOOST_NOEXCEPT {
return template_index::construct_with_cvr<T>();
}
template <class T>
type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT {
inline type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT {
BOOST_STATIC_ASSERT_MSG(sizeof(T) && false, "boost::type_id_rtti_only(T&) requires RTTI");
return type_index();
}
template <class T>
type_index type_id_rtti_only(T* rtti_val) {
inline type_index type_id_rtti_only(T* rtti_val) {
BOOST_STATIC_ASSERT_MSG(sizeof(T) && false, "boost::type_id_rtti_only(T*) requires RTTI");
return type_index();
}