Skip to content

Commit

Permalink
build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 26, 2023
1 parent ce58dfd commit b9888ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ class basic_value
template <typename... args_t>
basic_value(value_type type, args_t&&... args);

// Prohibit conversion of other types to basic_value
template <typename value_t>
basic_value(value_t) = delete;

~basic_value();

bool valid() const noexcept { return _type != value_type::invalid; }
Expand Down
13 changes: 13 additions & 0 deletions sample/sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,21 @@ bool parsing();
bool parsing_width();
bool serializing();

void new_feature()
{
struct my_data
{
operator json::value() const { return "mydata"; }
};

my_data data;
json::value jdata = data;
}

int main()
{
new_feature();

std::cout << "\n****** Parsing ******\n" << std::endl;

if (!parsing()) {
Expand Down

0 comments on commit b9888ba

Please sign in to comment.