Skip to content

Commit cf734b4

Browse files
committed
Fix namespace
1 parent 2e9be80 commit cf734b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/example.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33

44
#include <tinyopt/tinyopt.h>
55

6+
using namespace tinyopt::nlls;
7+
68
int main(int, char **argv) {
79

810
double x = 1;
911
auto loss = [](const auto &x) { return x * x - 2.0; };
1012

11-
tinyopt::Options options;
12-
const auto &out = tinyopt::Optimize(x, loss, options);
13+
Options options;
14+
const auto &out = Optimize(x, loss, options);
1315

1416
std::cout << "What's √2 already?\n" << x << "\n";
1517
return 0;

0 commit comments

Comments
 (0)