Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
4b820c2c
Commit
4b820c2c
authored
Oct 10, 2022
by
Pavel Vainerman
Committed by
Pavel Vainerman
Oct 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(build): fixed deprecated iterator definition
parent
74b48077
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
DBInterface.h
include/DBInterface.h
+6
-6
UniXML.h
include/UniXML.h
+7
-2
No files found.
include/DBInterface.h
View file @
4b820c2c
...
...
@@ -90,15 +90,15 @@ namespace uniset
std
::
unordered_map
<
std
::
string
,
int
>
colname
;
};
// ----------------------------------------------------------------------------------
class
DBRowIterator
:
public
std
::
iterator
<
std
::
bidirectional_iterator_tag
,
DBResult
::
ROW
::
value_type
,
DBResult
::
ROW
::
difference_type
,
DBResult
::
ROW
::
pointer
,
DBResult
::
ROW
::
reference
>
class
DBRowIterator
{
public
:
using
iterator_category
=
std
::
bidirectional_iterator_tag
;
using
value_type
=
DBResult
::
ROW
::
value_type
;
using
difference_type
=
DBResult
::
ROW
::
difference_type
;
using
pointer
=
DBResult
::
ROW
::
pointer
;
using
reference
=
DBResult
::
ROW
::
reference
;
std
::
string
as_string
(
const
char
*
name
)
const
;
std
::
string
as_string
(
const
std
::
string
&
name
)
const
;
...
...
include/UniXML.h
View file @
4b820c2c
...
...
@@ -40,10 +40,15 @@ namespace uniset
{
typedef
std
::
vector
<
std
::
pair
<
const
std
::
string
,
const
std
::
string
>
>
UniXMLPropList
;
class
UniXML_iterator
:
public
std
::
iterator
<
std
::
bidirectional_iterator_tag
,
xmlNode
,
ptrdiff_t
,
xmlNode
*
,
xmlNode
&>
class
UniXML_iterator
{
public
:
using
iterator_category
=
std
::
bidirectional_iterator_tag
;
using
value_type
=
xmlNode
;
using
difference_type
=
ptrdiff_t
;
using
pointer
=
const
value_type
*
;
using
reference
=
const
value_type
&
;
UniXML_iterator
(
xmlNode
*
node
)
noexcept
:
curNode
(
node
)
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment