Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
b96762a4
Commit
b96762a4
authored
Mar 13, 2014
by
Koji Miyazato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug #3599: cv::FileStorage does not work for std::vector of user-defined struct.
parent
70e22b68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
persistence.hpp
modules/core/include/opencv2/core/persistence.hpp
+2
-2
No files found.
modules/core/include/opencv2/core/persistence.hpp
View file @
b96762a4
...
@@ -697,11 +697,11 @@ void write(FileStorage& fs, const String& name, const Range& r )
...
@@ -697,11 +697,11 @@ void write(FileStorage& fs, const String& name, const Range& r )
template
<
typename
_Tp
>
static
inline
template
<
typename
_Tp
>
static
inline
void
write
(
FileStorage
&
fs
,
const
String
&
name
,
const
std
::
vector
<
_Tp
>&
vec
)
void
write
(
FileStorage
&
fs
,
const
String
&
name
,
const
std
::
vector
<
_Tp
>&
vec
)
{
{
internal
::
WriteStructContext
ws
(
fs
,
name
,
FileNode
::
SEQ
+
(
DataType
<
_Tp
>::
fmt
!=
0
?
FileNode
::
FLOW
:
0
)
);
fs
<<
(
DataType
<
_Tp
>::
fmt
!=
0
?
"[:"
:
"["
);
write
(
fs
,
vec
);
write
(
fs
,
vec
);
fs
<<
"]"
;
}
}
static
inline
static
inline
void
read
(
const
FileNode
&
node
,
bool
&
value
,
bool
default_value
)
void
read
(
const
FileNode
&
node
,
bool
&
value
,
bool
default_value
)
{
{
...
...
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