The condensed code that generates the error in the last e-mail is as follows:
template<typename T = some_type, std::size_t N=3> my_class {
public:
my_class(const T& i0) {
BOOST_STATIC_ASSERT(N==1);
m_data[0]=i0;
}
private:
T m_data[N];
}
I realize that N defaults to 3 and all, but without making any sweeping changes, is there a way to force MSVC++ 2010 to just compile, considering this was compiling fine with MSVC++ 2008?
Thanks,
--Thomas.
AMDG
> *error C2338: (N==1)*
On 11/01/2011 02:52 PM, Sunil Thomas wrote:
> I've noticed that MSVC++ 2010 has implemented static_assert (compile time
> checks); and probably
> as a result, the code that used to build fine in MSVC++ 2008 is now
> generating the following error.
>
> code:
>
> BOOST_STATIC_ASSERT(N==1)
> **
>This code is obviously not complete.
> Appreciate if anyone who has resolved this error can share their
> experiences..
>
The error indicates that N is not 1.
You haven't provided any context.
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users