Answer based on your comments:
Contents of fixed_point_header.h:
namespace fp // This places your function inside the fp namespace
{
float pow(float base, float exp)
{
return 0; // Replace with your algorithm
}
}
Source file:
#include <iostream>
#include <cmath>
#include "fixed_point_header.h"
int main()
{
float f1 = 2.0;
float f2 = 3.0;
std::cout << pow(f1, f2) << std::endl; // from cmath
std::cout << fp::pow(f1, f2) << std::endl; // from your header
return 0;
}
Output:
8
0