Skip to content

Commit

Permalink
ROL: avoid using namespace directive in header.
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Fehling <[email protected]>
  • Loading branch information
marcfehling committed Oct 30, 2024
1 parent 09758e9 commit 7afe3f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ROL_StdVector.hpp"
#include "ROL_Constraint_SimOpt.hpp"

using namespace ROL;
namespace ROL {

//! \brief ROL interface wrapper for Sacado SimOpt Constraint
template<class Real, template<class> class Constr>
Expand Down Expand Up @@ -594,4 +594,7 @@ void Sacado_Constraint_SimOpt<Real,Constr>::applyAdjointHessian_22AD(Vector<Scal

}
}

} // namespace ROL

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ROL_StdVector.hpp"
#include "ROL_Objective.hpp"

using namespace ROL;
namespace ROL {

/** \brief Generic objective wrapper class for class that uses Sacado */
template<class Real, template<class> class Obj>
Expand Down Expand Up @@ -151,5 +151,6 @@ void Sacado_Objective<Real,Obj>::hessVecAD( Vector<ScalarT> &hv, const Vector<Sc
}
}

} // namespace ROL

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ROL_StdVector.hpp"
#include "ROL_Objective_SimOpt.hpp"

using namespace ROL;
namespace ROL {

template <class Real, template<class> class Obj>
class Sacado_Objective_SimOpt : public Objective_SimOpt<Real> {
Expand Down Expand Up @@ -404,6 +404,6 @@ void Sacado_Objective_SimOpt<Real,Obj>::hessVec_22AD(Vector<ScalarT> &hv, const

}


} // namespace ROL

#endif

0 comments on commit 7afe3f6

Please sign in to comment.