Skip to content

Commit

Permalink
Cleanup the packaging example (#850)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Oct 9, 2024
1 parent 96fc75e commit 46e632e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/packaging/find_package/hello.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ auto main() -> int {

sourcemeta::jsonbinpack::compile(
schema, sourcemeta::jsontoolkit::default_schema_walker,
sourcemeta::jsontoolkit::official_resolver,
"https://json-schema.org/draft/2020-12/schema");
sourcemeta::jsontoolkit::official_resolver);

const sourcemeta::jsonbinpack::Encoding plan{
const sourcemeta::jsonbinpack::Encoding encoding{
sourcemeta::jsonbinpack::load(schema)};
sourcemeta::jsonbinpack::Encoder encoder{std::cout};

const sourcemeta::jsontoolkit::JSON instance{5};
sourcemeta::jsonbinpack::Encoder encoder{std::cout};
encoder.write(instance, plan);
encoder.write(instance, encoding);

std::cout << std::endl;
return EXIT_SUCCESS;
}

0 comments on commit 46e632e

Please sign in to comment.