Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue-218 - remove public redundancy #219

Merged
merged 2 commits into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion stl/inc/deque
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ struct _Deque_iter_types {
};

template <class _Ty>
struct _Deque_simple_types : public _Simple_types<_Ty> {
struct _Deque_simple_types : _Simple_types<_Ty> {
using _Mapptr = _Ty**;
};

Expand Down
2 changes: 1 addition & 1 deletion stl/inc/future
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ enum class future_status { // names for timed wait function returns

// STRUCT TEMPLATE SPECIALIZATION is_error_code_enum
template <>
struct is_error_code_enum<future_errc> : public true_type {};
struct is_error_code_enum<future_errc> : true_type {};

_NODISCARD const error_category& future_category() noexcept;

Expand Down
4 changes: 2 additions & 2 deletions stl/inc/scoped_allocator
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct _Scoped_base;
struct _Secret_scoped_allocator_construct_tag {};

template <class _Outer, class _Inner0, class... _Inner>
struct _Scoped_base<_Outer, _Inner0, _Inner...> : public _Outer { // nest of allocators, arbitrary depth
struct _Scoped_base<_Outer, _Inner0, _Inner...> : _Outer { // nest of allocators, arbitrary depth
using _Myadaptor = scoped_allocator_adaptor<_Outer, _Inner0, _Inner...>;
using inner_allocator_type = scoped_allocator_adaptor<_Inner0, _Inner...>;

Expand Down Expand Up @@ -99,7 +99,7 @@ struct _Scoped_base<_Outer, _Inner0, _Inner...> : public _Outer { // nest of all
};

template <class _Outer>
struct _Scoped_base<_Outer> : public _Outer { // nest of allocators, one deep
struct _Scoped_base<_Outer> : _Outer { // nest of allocators, one deep
using _Myadaptor = scoped_allocator_adaptor<_Outer>;
using inner_allocator_type = scoped_allocator_adaptor<_Outer>;

Expand Down
8 changes: 4 additions & 4 deletions stl/inc/utility
Original file line number Diff line number Diff line change
Expand Up @@ -407,20 +407,20 @@ template <size_t _Index, class _Tuple>
struct tuple_element;

template <size_t _Index, class _Tuple>
struct tuple_element<_Index, const _Tuple> : public tuple_element<_Index, _Tuple> { // tuple_element for const
struct tuple_element<_Index, const _Tuple> : tuple_element<_Index, _Tuple> { // tuple_element for const
using _Mybase = tuple_element<_Index, _Tuple>;
using type = add_const_t<typename _Mybase::type>;
};

template <size_t _Index, class _Tuple>
struct tuple_element<_Index, volatile _Tuple> : public tuple_element<_Index, _Tuple> { // tuple_element for volatile
struct tuple_element<_Index, volatile _Tuple> : tuple_element<_Index, _Tuple> { // tuple_element for volatile
using _Mybase = tuple_element<_Index, _Tuple>;
using type = add_volatile_t<typename _Mybase::type>;
};

template <size_t _Index, class _Tuple>
struct tuple_element<_Index, const volatile _Tuple>
: public tuple_element<_Index, _Tuple> { // tuple_element for const volatile
: tuple_element<_Index, _Tuple> { // tuple_element for const volatile
using _Mybase = tuple_element<_Index, _Tuple>;
using type = add_cv_t<typename _Mybase::type>;
};
Expand Down Expand Up @@ -463,7 +463,7 @@ struct tuple_element<0, tuple<_This, _Rest...>> { // select first element

template <size_t _Index, class _This, class... _Rest>
struct tuple_element<_Index, tuple<_This, _Rest...>>
: public tuple_element<_Index - 1, tuple<_Rest...>> { // recursive tuple_element definition
: tuple_element<_Index - 1, tuple<_Rest...>> { // recursive tuple_element definition
};

// TUPLE INTERFACE TO pair
Expand Down
4 changes: 2 additions & 2 deletions stl/inc/xiosbase
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ protected:

private:
// STRUCT _Iosarray
struct _Iosarray : public _Crt_new_delete { // list element for open-ended sparse array of longs/pointers
struct _Iosarray : _Crt_new_delete { // list element for open-ended sparse array of longs/pointers
public:
__CLR_OR_THIS_CALL _Iosarray(int _Idx, _Iosarray* _Link)
: _Next(_Link), _Index(_Idx), _Lo(0), _Vp(nullptr) { // construct node for index _Idx and link it in
Expand All @@ -491,7 +491,7 @@ private:
};

// STRUCT _Fnarray
struct _Fnarray : public _Crt_new_delete { // list element for open-ended sparse array of event handlers
struct _Fnarray : _Crt_new_delete { // list element for open-ended sparse array of event handlers
__CLR_OR_THIS_CALL _Fnarray(int _Idx, event_callback _Pnew, _Fnarray* _Link)
: _Next(_Link), _Index(_Idx), _Pfn(_Pnew) { // construct node for index _Idx and link it in
}
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/xlocmes
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _STL_DISABLE_CLANG_WARNINGS

_STD_BEGIN
// STRUCT messages_base
struct messages_base : public locale::facet { // base class for messages
struct messages_base : locale::facet { // base class for messages
using catalog = int;

explicit messages_base(size_t _Refs = 0) : locale::facet(_Refs) {}
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/xlocmon
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _STL_DISABLE_CLANG_WARNINGS

_STD_BEGIN
// STRUCT money_base
struct money_base : public locale::facet { // ultimate base class for moneypunct
struct money_base : locale::facet { // ultimate base class for moneypunct
enum { // constants for different format codes
symbol = '$',
sign = '+',
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/xloctime
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _STL_DISABLE_CLANG_WARNINGS

_STD_BEGIN
// STRUCT time_base
struct _CRTIMP2_PURE_IMPORT time_base : public locale::facet { // base class for time_get
struct _CRTIMP2_PURE_IMPORT time_base : locale::facet { // base class for time_get
enum dateorder { // constants for different orders of date components
no_order,
dmy,
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/xtree
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ struct _Tree_node {
};

template <class _Ty>
struct _Tree_simple_types : public _Simple_types<_Ty> {
struct _Tree_simple_types : _Simple_types<_Ty> {
using _Node = _Tree_node<_Ty, void*>;
using _Nodeptr = _Node*;
};
Expand Down