Skip to content

Commit 5845423

Browse files
committed
Cleaned up the code a little bit. Removed some unnecessary namespaces.
1 parent b67eeb9 commit 5845423

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

_posts/2016-07-26-rcpp-honey.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ traits::true_type has_na(const std::list< T, A > &val);
7676

7777
// Tell RcppHoney that it needs to create basic (e.g. std::list + std::list) operators
7878
template< typename T, typename A >
79-
RcppHoney::traits::true_type needs_basic_operators(const std::list< T, A > &val);
79+
traits::true_type needs_basic_operators(const std::list< T, A > &val);
8080

8181
// Tell RcppHoney that it needs to create scalar (e.g. std::list + int/double) operators
8282
template< typename T, typename A >
83-
RcppHoney::traits::true_type needs_scalar_operators(const std::list< T, A > &val);
83+
traits::true_type needs_scalar_operators(const std::list< T, A > &val);
8484

8585
// Tell RcppHoney that this set of types is part of the FAMILY_USER + 1 family.
8686
// This is used in conjunction with needs_basic_operators. If you have
8787
// needs_basic_operators return RcppHoney::traits::false_type, then only types
8888
// that are not part of the same family will have binary operators created
8989
// between them.
9090
template< typename T, typename A >
91-
RcppHoney::traits::int_constant< FAMILY_USER + 1 > family(const std::list< T, A > &val);
91+
traits::int_constant< FAMILY_USER + 1 > family(const std::list< T, A > &val);
9292

9393
} // namespace hooks
9494
} // namespace RcppHoney

src/2016-07-26-rcpp-honey.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@ traits::true_type has_na(const std::list< T, A > &val);
7373
7474
// Tell RcppHoney that it needs to create basic (e.g. std::list + std::list) operators
7575
template< typename T, typename A >
76-
RcppHoney::traits::true_type needs_basic_operators(const std::list< T, A > &val);
76+
traits::true_type needs_basic_operators(const std::list< T, A > &val);
7777
7878
// Tell RcppHoney that it needs to create scalar (e.g. std::list + int/double) operators
7979
template< typename T, typename A >
80-
RcppHoney::traits::true_type needs_scalar_operators(const std::list< T, A > &val);
80+
traits::true_type needs_scalar_operators(const std::list< T, A > &val);
8181
8282
// Tell RcppHoney that this set of types is part of the FAMILY_USER + 1 family.
8383
// This is used in conjunction with needs_basic_operators. If you have
8484
// needs_basic_operators return RcppHoney::traits::false_type, then only types
8585
// that are not part of the same family will have binary operators created
8686
// between them.
8787
template< typename T, typename A >
88-
RcppHoney::traits::int_constant< FAMILY_USER + 1 > family(const std::list< T, A > &val);
88+
traits::int_constant< FAMILY_USER + 1 > family(const std::list< T, A > &val);
8989
9090
} // namespace hooks
9191
} // namespace RcppHoney

0 commit comments

Comments
 (0)