Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/cpp-json/value.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ inline std::string &value::as_string() {
//------------------------------------------------------------------------------
// Name: as_object
//------------------------------------------------------------------------------
const object &value::as_object() const {
inline const object &value::as_object() const {
if(type_ != type_object) {
throw invalid_type_cast();
}
Expand All @@ -291,7 +291,7 @@ const object &value::as_object() const {
//------------------------------------------------------------------------------
// Name: as_object
//------------------------------------------------------------------------------
object &value::as_object() {
inline object &value::as_object() {
if(type_ != type_object) {
throw invalid_type_cast();
}
Expand All @@ -301,7 +301,7 @@ object &value::as_object() {
//------------------------------------------------------------------------------
// Name: as_array
//------------------------------------------------------------------------------
const array &value::as_array() const {
inline const array &value::as_array() const {
if(type_ != type_array) {
throw invalid_type_cast();
}
Expand All @@ -311,7 +311,7 @@ const array &value::as_array() const {
//------------------------------------------------------------------------------
// Name: as_array
//------------------------------------------------------------------------------
array &value::as_array() {
inline array &value::as_array() {
if(type_ != type_array) {
throw invalid_type_cast();
}
Expand Down