$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Bill Seymour (bill-at-the-office_at_[hidden])
Date: 2001-11-05 11:15:22
I've discovered one reason why I'm having trouble
compiling the fixed-point decimal library with
MSVC v5. In a nutshell:
template<typename T> struct foo { };
template<typename U>
struct bar
{
bar(const foo<int>&);
bar(const foo<double>&);
};
On the line with the second ctor, the compiler tells me
that bar(const foo&) is already declared (so it's not
recognizing foo<int> and foo<double> as distinct types).
If I make bar a non-template class by just commenting
out the template<typename U> line, it works OK.
Is this a problem with MSVC v6, too? If so, is there
a workaround?
Thanks,
--Bill Seymour