Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
00e4a56d
Commit
00e4a56d
authored
Sep 07, 2011
by
Jesse Beder
Browse files
Compiles/links assignment to string
parent
1e687704
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
include/yaml-cpp/value/detail/node_data.h
include/yaml-cpp/value/detail/node_data.h
+1
-1
include/yaml-cpp/value/impl.h
include/yaml-cpp/value/impl.h
+2
-4
include/yaml-cpp/value/value.h
include/yaml-cpp/value/value.h
+2
-0
util/value.cpp
util/value.cpp
+1
-0
No files found.
include/yaml-cpp/value/detail/node_data.h
View file @
00e4a56d
...
...
@@ -16,7 +16,7 @@ namespace YAML
class
node_data
{
public:
explicit
node_data
(
const
std
::
string
&
data
)
;
explicit
node_data
(
const
std
::
string
&
data
)
{}
};
}
}
...
...
include/yaml-cpp/value/impl.h
View file @
00e4a56d
...
...
@@ -61,15 +61,13 @@ namespace YAML
m_pNode
->
set_scalar
(
rhs
);
}
template
<
>
inline
void
Value
::
Assign
(
const
char
*
const
&
rhs
)
inline
void
Value
::
Assign
(
const
char
*
rhs
)
{
EnsureNodeExists
();
m_pNode
->
set_scalar
(
rhs
);
}
template
<
>
inline
void
Value
::
Assign
(
char
*
const
&
rhs
)
inline
void
Value
::
Assign
(
char
*
rhs
)
{
EnsureNodeExists
();
m_pNode
->
set_scalar
(
rhs
);
...
...
include/yaml-cpp/value/value.h
View file @
00e4a56d
...
...
@@ -61,6 +61,8 @@ namespace YAML
private:
template
<
typename
T
>
void
Assign
(
const
T
&
rhs
);
void
Assign
(
const
char
*
rhs
);
void
Assign
(
char
*
rhs
);
void
EnsureNodeExists
();
void
AssignData
(
const
Value
&
rhs
);
...
...
util/value.cpp
View file @
00e4a56d
...
...
@@ -3,6 +3,7 @@
int
main
()
{
YAML
::
Value
value
;
value
=
"Hello"
;
return
0
;
}
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