This is going to confuse users who supply an integer for x.  How about using the boost promotion for the result and using 1.0 rather than 1 in the division.