@@ -156,8 +156,12 @@ namespace detail{
156
156
157
157
struct const_item { const int values[10 ]; };
158
158
159
+ void test_const_item (const_item by_value);
160
+
159
161
struct const_container { const const_item items[10 ]; };
160
162
163
+ void test_const_container (const_container by_value);
164
+
161
165
enum semantic{ position, normal, binormal };
162
166
enum element_type{ float_, color, short_ };
163
167
@@ -182,9 +186,7 @@ namespace yes{
182
186
typedef detail::d_t d_t ;
183
187
typedef detail::dd_t dd_t ;
184
188
typedef detail::f_t f_t ;
185
- typedef detail::g_t g_t ;
186
- typedef detail::const_item const_item_t ;
187
- typedef detail::const_container const_container_t ;
189
+ typedef detail::g_t g_t ;
188
190
}
189
191
namespace no {
190
192
typedef std::string string_type;
@@ -193,6 +195,9 @@ namespace no{
193
195
typedef std::set< std::string > string_set_type;
194
196
typedef std::multimap< std::string, std::string > s2s_multimap_type;
195
197
typedef detail::vertex vertex_type;
198
+ typedef detail::const_container const_container_t ;
199
+ typedef detail::const_item const_item_t ;
200
+
196
201
}
197
202
}
198
203
@@ -523,20 +528,31 @@ namespace no{
523
528
524
529
namespace has_trivial_constructor {
525
530
531
+ namespace details {
532
+
533
+ struct const_item { const int values[10 ]; };
534
+
535
+ void test_const_item ( const_item x = const_item() );
536
+
537
+ struct const_container { const const_item items[10 ]; };
538
+
539
+ void test_const_container ( const_container x = const_container() );
540
+
541
+ }
542
+
526
543
namespace yes {
527
544
struct x {
528
545
x (){}
529
546
};
547
+ typedef details::const_item const_item;
548
+ typedef details::const_container const_container;
530
549
}
531
550
532
551
namespace no {
533
552
class y {
534
553
private:
535
554
y (){}
536
555
};
537
-
538
- struct const_item { const int values[10 ]; };
539
- struct const_container { const const_item items[10 ]; };
540
556
541
557
class singleton_t
542
558
{
0 commit comments