1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028824: Possibility to build OCCT 7.1.0 and above using Visual Studio 2008

Possibility to build OCCT using Visual Studio 2008 (VC9) is restored.
For that:

- template functions and classes from namespace std or tr1 (for VC9) are imported to namespace opencascade which is then used instead of std in relevant places
- templates not provided by compiler (VC9) but required for OCCT are defined in this namespace (in Standard_Handle.hxx)
- methods implementing move semantics are excluded for VC9 compiler (which does not support && syntax)
- support of vc9 compiler is restored in build procedures and environment scripts
- check of type of the current class in macros DEFINE_STANDARD_RTTI* is refactored

VS 2008 is restored in the list of supported platforms on Overview / System Requirements.
This commit is contained in:
oan
2017-09-14 11:39:36 +03:00
committed by bugmaster
parent a4ab454c0f
commit 71c810df61
23 changed files with 201 additions and 122 deletions

View File

@@ -82,13 +82,11 @@ void Poly_Connect::Load (const Handle(Poly_Triangulation)& theTriangulation)
const Standard_Integer aNbAdjs = 6 * nbTriangles;
if (myTriangles.Size() != nbNodes)
{
TColStd_Array1OfInteger aTriArray (1, nbNodes);
myTriangles.Move (std::move (aTriArray));
myTriangles.Resize (1, nbNodes, Standard_False);
}
if (myAdjacents.Size() != aNbAdjs)
{
TColStd_Array1OfInteger anAdjArray (1, aNbAdjs);
myAdjacents.Move (std::move (anAdjArray));
myAdjacents.Resize (1, aNbAdjs, Standard_False);
}
}