diff --git a/doctest.h b/doctest.h index 5c754cd..ffbd34a 100644 --- a/doctest.h +++ b/doctest.h @@ -7082,7 +7082,7 @@ namespace detail { #ifdef DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4007) // 'function' : must be 'attribute' - see issue #182 -int main(int argc, char** argv) { return doctest::Context(argc, argv).run(); } + DOCTEST_MSVC_SUPPRESS_WARNING_POP #endif // DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN diff --git a/histogram.cpp b/histogram.cpp index a54fe18..2d35027 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -1,5 +1,6 @@ #include "histogram.h" #include +#include "histogram_internal.h" void find_minmax(const std::vector &numbers, double &min, double &max, bool &res) { if (numbers.size()==0) diff --git a/main.cpp b/main.cpp index d4e7d58..8b6cb7c 100644 --- a/main.cpp +++ b/main.cpp @@ -31,9 +31,10 @@ int main() { bool res = false; - auto in = input_data(); + Input in = input_data(); auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg(bins); + return 0; } diff --git a/svg.cpp b/svg.cpp index dbee47e..3669a33 100644 --- a/svg.cpp +++ b/svg.cpp @@ -1,5 +1,4 @@ #include -#include #include "svg.h" void