Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Fixing missing inline from non-template functions #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class JSON
Class Type = Class::Null;
};

JSON Array() {
inline JSON Array() {
return std::move( JSON::Make( JSON::Class::Array ) );
}

Expand All @@ -429,11 +429,11 @@ JSON Array( T... args ) {
return std::move( arr );
}

JSON Object() {
inline JSON Object() {
return std::move( JSON::Make( JSON::Class::Object ) );
}

std::ostream& operator<<( std::ostream &os, const JSON &json ) {
inline std::ostream& operator<<( std::ostream &os, const JSON &json ) {
os << json.dump();
return os;
}
Expand Down Expand Up @@ -641,7 +641,7 @@ namespace {
}
}

JSON JSON::Load( const string &str ) {
inline JSON JSON::Load( const string &str ) {
size_t offset = 0;
return std::move( parse_next( str, offset ) );
}
Expand Down