File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,12 @@ namespace boost {
148
148
boost::core::invoke_swap (elems[i],y.elems [i]);
149
149
}
150
150
151
- // direct access to data (read-only)
151
+ // direct access to data
152
152
BOOST_CONSTEXPR const T* data () const BOOST_NOEXCEPT { return elems; }
153
153
BOOST_CXX14_CONSTEXPR T* data () BOOST_NOEXCEPT { return elems; }
154
154
155
- // use array as C array (direct read/write access to data)
155
+ // obsolete
156
+ BOOST_DEPRECATED ( " please use `data()` instead" )
156
157
T* c_array () BOOST_NOEXCEPT { return elems; }
157
158
158
159
// assignment with type conversion
@@ -263,11 +264,12 @@ namespace boost {
263
264
void swap (array<T,0 >& /* y*/ ) {
264
265
}
265
266
266
- // direct access to data (read-only)
267
+ // direct access to data
267
268
BOOST_CONSTEXPR const T* data () const BOOST_NOEXCEPT { return 0 ; }
268
269
BOOST_CXX14_CONSTEXPR T* data () BOOST_NOEXCEPT { return 0 ; }
269
270
270
- // use array as C array (direct read/write access to data)
271
+ // obsolete
272
+ BOOST_DEPRECATED ( " please use `data()` instead" )
271
273
T* c_array () BOOST_NOEXCEPT { return 0 ; }
272
274
273
275
// assignment with type conversion
You can’t perform that action at this time.
0 commit comments