Skip to content

Commit

Permalink
Remove checked_iterator.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Osyotr authored Oct 24, 2024
1 parent 20192e6 commit 4a52b93
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 85 deletions.
14 changes: 4 additions & 10 deletions ACE/ace/Array_Map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# include "ace/Array_Map.inl"
#endif /* !__ACE_INLINE__ */

#include "ace/checked_iterator.h"

#include <algorithm>

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
Expand All @@ -23,8 +21,7 @@ ACE_Array_Map<Key, Value, EqualTo, Alloc>::ACE_Array_Map (InputIterator f,
{
(void) std::uninitialized_copy (f,
l,
ACE_make_checked_array_iterator (this->begin (),
this->size_));
this->begin ());
}

template<typename Key, typename Value, class EqualTo, class Alloc>
Expand All @@ -36,8 +33,7 @@ ACE_Array_Map<Key, Value, EqualTo, Alloc>::ACE_Array_Map (
{
(void) std::uninitialized_copy (map.begin (),
map.end (),
ACE_make_checked_array_iterator (this->begin (),
this->size_));
this->begin ());
}

template<typename Key, typename Value, class EqualTo, class Alloc>
Expand Down Expand Up @@ -215,8 +211,7 @@ ACE_Array_Map<Key, Value, EqualTo, Alloc>::grow (

std::copy (this->begin (),
this->end (),
ACE_make_checked_array_iterator (temp.begin (),
temp.capacity_));
temp.begin ());

size_type const n = this->size (); // Do not swap out the size
// since we bypassed the
Expand All @@ -241,8 +236,7 @@ operator== (ACE_Array_Map<Key, Value, EqualTo, Alloc> const & lhs,
return (lhs.size () == rhs.size ()
&& std::equal (lhs.begin (),
lhs.end (),
ACE_make_checked_array_iterator (rhs.begin (),
rhs.size ())));
rhs.begin ()));
}

template <typename Key, typename Value, class EqualTo, class Alloc>
Expand Down
1 change: 0 additions & 1 deletion ACE/ace/ace.mpc
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ project(ACE) : ace_output, acedefaults, install, other, codecs, token, svcconf,
Version.h
Versioned_Namespace.h
ace_wchar.h
checked_iterator.h
config-*.h
config.h
iosfwd.h
Expand Down
1 change: 0 additions & 1 deletion ACE/ace/ace_for_tao.mpc
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ project(ACE_FOR_TAO) : acedefaults, install, svcconf, uuid, versioned_namespace,
Value_Ptr.h
Version.h
ace_wchar.h
checked_iterator.h
config-all.h
config-lite.h
config-win32-borland.h
Expand Down
56 changes: 0 additions & 56 deletions ACE/ace/checked_iterator.h

This file was deleted.

11 changes: 0 additions & 11 deletions ACE/bin/MakeProjectCreator/config/vc_warnings.mpb
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ feature(vc_avoid_winsock_warnings) {
}
}

feature(vc_avoid_stdext_arr_iters_warning) {
specific(prop:microsoft) {
macros += _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING
}
verbatim(cmake, macros, 1) {
if(MSVC)
" add_compile_definitions(_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING)"
endif()
}
}

feature(vc_avoid_hides_local_declaration) {
specific(vc14) {
DisableSpecificWarnings += 4456
Expand Down
5 changes: 2 additions & 3 deletions TAO/tao/Generic_Sequence_T.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
*/

#include "tao/Range_Checking_T.h"
#include "ace/checked_iterator.h"

#include <algorithm>

Expand Down Expand Up @@ -127,7 +126,7 @@ class generic_sequence
element_traits::copy_range(
rhs.buffer_,
rhs.buffer_ + rhs.length_,
ACE_make_checked_array_iterator (tmp.buffer_, tmp.length_));
tmp.buffer_);
swap(tmp);
}

Expand Down Expand Up @@ -211,7 +210,7 @@ class generic_sequence
element_traits::copy_swap_range(
buffer_,
buffer_ + length_,
ACE_make_checked_array_iterator (tmp.buffer_, tmp.length_));
tmp.buffer_);

swap(tmp);
}
Expand Down
5 changes: 2 additions & 3 deletions TAO/tao/Unbounded_Octet_Sequence_T.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "tao/Basic_Types.h"
#include "ace/Message_Block.h"
#include "ace/OS_Memory.h"
#include "ace/checked_iterator.h"

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

Expand Down Expand Up @@ -140,7 +139,7 @@ class TAO_Export unbounded_value_sequence<CORBA::Octet>
element_traits::copy_range(
buffer_,
buffer_ + length,
ACE_make_checked_array_iterator (tmp.buffer_, tmp.length_));
tmp.buffer_);
swap(tmp);
}
return;
Expand All @@ -151,7 +150,7 @@ class TAO_Export unbounded_value_sequence<CORBA::Octet>
element_traits::copy_range(
buffer_,
buffer_ + length_,
ACE_make_checked_array_iterator (tmp.buffer_, tmp.length_));
tmp.buffer_);
swap(tmp);
}
inline value_type const & operator[](CORBA::ULong i) const {
Expand Down

0 comments on commit 4a52b93

Please sign in to comment.