cmake/Tests/Tutorial/Consumer/consumer.cxx
2019-11-11 23:01:05 +01:00

12 lines
253 B
C++

// A simple function that computes the square root of a number
#include <iostream>
#include <sstream>
#include <string>
#include "MathFunctions.h"
double string_square_root(std::string const& value)
{
return mathfunctions::sqrt(std::stod(value));
}