0

Does anybody know where can I find it? Otherwise I'll have to write it by myself.

Thanks.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
niXman
  • 1,698
  • 3
  • 16
  • 40

1 Answers1

2

There is no exp function in boost::mpl 1.45. I've counted them. Twice.

Perhaps you could create your own by applying the times meta-function recursively.

Pete Kirkham
  • 48,893
  • 5
  • 92
  • 171
  • спасибо. я говорю на русском. посему, мне сложно излагать на английском. вопрос заключался в том, где можно найти готовую реализацию метафункции exp(). придется писать самому. – niXman Jan 07 '11 at 23:05
  • "Thanks. I speak Russian. Therefore, I find it difficult to express in English. question was, where you can find a ready implementation metafunction exp (). have to write myself" – Pete Kirkham Jan 08 '11 at 10:49
  • @niXman If you are dealing with integral powers of e, then you can create one easily using the recursive relationships - exp(2N) = exp(N)**2; exp(N+1) = e * exp(N), exp(0) = 1. I'm not sure how you would deal with fractional powers without converting a full implementation of exp() such as http://www.netlib.org/fdlibm/e_exp.c to a template meta-function. – Pete Kirkham Jan 08 '11 at 10:57