Skip to content

Commit b677850

Browse files
committed
Using inline namespaces
1 parent 89b8e1a commit b677850

22 files changed

+46
-61
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ build_asl/
1010
.vs/
1111
.vscode/settings.json
1212
/.cache
13+
compile_commands.json

adobe/any_regular.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ const vtable_t any_regular_model_remote<T>::vtable_s = {
301301

302302
/**************************************************************************************************/
303303

304-
namespace version_1 {
304+
inline namespace version_1 {
305305

306306
/**************************************************************************************************/
307307

adobe/any_regular_fwd.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
namespace adobe {
1616

17-
namespace version_1 {
17+
inline namespace version_1 {
1818

1919
/**************************************************************************************************/
2020

@@ -24,8 +24,6 @@ class any_regular_t;
2424

2525
} // namespace version_1
2626

27-
using version_1::any_regular_t;
28-
2927
} // namespace adobe
3028

3129
/**************************************************************************************************/

adobe/array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ inline void push_back(array_t& v, any_regular_t x) { v.push_back(std::move(x));
3636
#ifdef ADOBE_STD_SERIALIZATION
3737

3838
// To be findable by ADL, the operator must be in the same namespace as `any_regular_t.`
39-
namespace version_1 {
39+
inline namespace version_1 {
4040

4141
inline std::ostream& operator<<(std::ostream& out, const array_t& x) {
4242
out << begin_sequence;

adobe/closed_hash.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct set_next_fn<implementation::closed_hash_iterator<T, V>> {
117117

118118
#ifndef ADOBE_NO_DOCUMENTATION
119119

120-
namespace version_1 {
120+
inline namespace version_1 {
121121

122122
#endif
123123

@@ -133,7 +133,8 @@ A \c closed_hash_set is a hash based associative container, similar to a hash_se
133133
134134
\model_of
135135
- \ref concept_regular_type
136-
- [UniqueHashedAssociativeContainer](https://www.boost.org/sgi/stl/UniqueHashedAssociativeContainer.html)
136+
-
137+
[UniqueHashedAssociativeContainer](https://www.boost.org/sgi/stl/UniqueHashedAssociativeContainer.html)
137138
138139
\todo
139140
- re-order parameters so key_function is after comparison - to be consistent with
@@ -631,17 +632,16 @@ pair.
631632
632633
\model_of
633634
- \ref concept_regular_type
634-
- [UniqueHashedAssociativeContainer](https://www.boost.org/sgi/stl/UniqueHashedAssociativeContainer.html)
635+
-
636+
[UniqueHashedAssociativeContainer](https://www.boost.org/sgi/stl/UniqueHashedAssociativeContainer.html)
635637
636638
637639
*/
638640

639641
template <typename Key, typename T, typename Hash, typename Pred, typename A>
640-
class closed_hash_map
641-
: public closed_hash_set<std::pair<Key, T>, get_element<0>, Hash, Pred, A> {
642+
class closed_hash_map : public closed_hash_set<std::pair<Key, T>, get_element<0>, Hash, Pred, A> {
642643

643-
using set_type =
644-
closed_hash_set<std::pair<Key, T>, get_element<0>, Hash, Pred, A>;
644+
using set_type = closed_hash_set<std::pair<Key, T>, get_element<0>, Hash, Pred, A>;
645645

646646
public:
647647
typedef T mapped_type;

adobe/closed_hash_fwd.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**************************************************************************************************/
2323

2424
namespace adobe {
25-
namespace version_1 {
25+
inline namespace version_1 {
2626

2727
/**************************************************************************************************/
2828

@@ -38,9 +38,6 @@ class closed_hash_map;
3838

3939
} // namespace version_1
4040

41-
using version_1::closed_hash_map;
42-
using version_1::closed_hash_set;
43-
4441
} // namespace adobe
4542

4643
/**************************************************************************************************/

adobe/copy_on_write.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace adobe {
3131

3232
/**************************************************************************************************/
3333

34-
namespace version_1 {
34+
inline namespace version_1 {
3535

3636
/**************************************************************************************************/
3737

@@ -377,10 +377,6 @@ void copy_on_write<T, A>::release_default() {
377377

378378
/**************************************************************************************************/
379379

380-
using version_1::copy_on_write;
381-
382-
/**************************************************************************************************/
383-
384380
} // namespace adobe
385381

386382
/**************************************************************************************************/

adobe/dictionary.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**************************************************************************************************/
2929

3030
namespace adobe {
31-
namespace version_1 {
31+
inline namespace version_1 {
3232

3333
/**************************************************************************************************/
3434

@@ -69,8 +69,6 @@ std::ostream& operator<<(std::ostream& out, const dictionary_t& x);
6969

7070
} // namespace version_1
7171

72-
using version_1::get_value;
73-
7472
} // namespace adobe
7573

7674
/**************************************************************************************************/

adobe/dictionary_fwd.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**************************************************************************************************/
2020

2121
namespace adobe {
22-
namespace version_1 {
22+
inline namespace version_1 {
2323

2424
/**************************************************************************************************/
2525

@@ -29,8 +29,6 @@ typedef closed_hash_map<name_t, any_regular_t> dictionary_t;
2929

3030
} // namespace version_1
3131

32-
using version_1::dictionary_t;
33-
3432
} // namespace adobe
3533

3634
/**************************************************************************************************/

adobe/empty.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**************************************************************************************************/
2323

2424
namespace adobe {
25-
namespace version_1 {
25+
inline namespace version_1 {
2626

2727
/**************************************************************************************************/
2828

@@ -53,8 +53,6 @@ std::ostream& operator<<(std::ostream& stream, const empty_t&);
5353

5454
} // namespace version_1
5555

56-
using version_1::empty_t;
57-
5856
/**************************************************************************************************/
5957

6058
/*!

0 commit comments

Comments
 (0)