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.
On Tue, Nov 1, 2011 at 4:20 PM, Steven Watanabe
AMDG
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) *error C2338: (N==1)* **
Appreciate if anyone who has resolved this error can share their experiences..
This code is obviously not complete. 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