Boost logo

Ublas :

From: Ramsay, Erik GOSS (Erik.Ramsay_at_[hidden])
Date: 2006-06-02 09:39:38


Would someone be kind enough to help me with this complier warning?
 
Here's the function:
 
void TestFunction(
boost::numeric::ublas::matrix<double>::const_iterator1
itrInfluenceColumn, const double Value, const int Size)

{

    std::vector<double> TempValues(Size, Value);

 
transform(TempValues.begin(),TempValues.end(),itrInfluenceColumn.begin()
, TempValues.begin(), _1*_2);

}

 
The warning is:
c:\program files\microsoft visual studio 8\vc\include\algorithm(802) :
warning C4996: 'std::_Transform' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\algorithm(784) :
see declaration of 'std::_Transform'
Message: 'You have used a std:: construct that is not safe. See
documentation on how to use the Safe Standard C++ Library'
w:\omnicon\vc\colorman\steadystatemodel.cpp(1195) : see reference to
function template instantiation '_OutIt
std::transform<std::_Vector_iterator<_Ty,_Alloc>,boost::numeric::ublas::
matrix<T>::const_iterator2,std::_Vector_iterator<_Ty,_Alloc>,boost::lamb
da::lambda_functor<boost::lambda::lambda_functor_base<Act,Args>>>(_InIt1
,_InIt1,_InIt2,_OutIt,_Fn2)' being compiled
with
[
_OutIt=std::_Vector_iterator<double,std::allocator<double>>,
_Ty=double,
_Alloc=std::allocator<double>,
T=double,
Act=boost::lambda::arithmetic_action<boost::lambda::multiply_action>,
Args=boost::tuples::tuple<boost::lambda::lambda_functor<boost::lambda::p
laceholder<1>>,boost::lambda::lambda_functor<boost::lambda::placeholder<
2>>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::nul
l_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::
null_type,boost::tuples::null_type,boost::tuples::null_type>,
_InIt1=std::_Vector_iterator<double,std::allocator<double>>,
_InIt2=boost::numeric::ublas::matrix<double>::const_iterator2,
_Fn2=boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<bo
ost::lambda::arithmetic_action<boost::lambda::multiply_action>,boost::tu
ples::tuple<boost::lambda::lambda_functor<boost::lambda::placeholder<1>>
,boost::lambda::lambda_functor<boost::lambda::placeholder<2>>,boost::tup
les::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::
tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boos
t::tuples::null_type,boost::tuples::null_type>>>
]
 
I appreciate any help that you can give me.
 
Erik