gcc3.3.1、VC6SP5で通るがBCC5.6.4で通らんよ。
template <class T> T t_log10(T v) {
  return std::log10(std::valarray<T>(v, 1))[0];
}