Apr 8, 2016 12:14
8 yrs ago
English term

copy-ctor

English to Russian Tech/Engineering Computers: Software
Документация по программному обеспечению для системы MiraQ производства Medistim для хирургических операций на сосудах

Comments:

All code was built with warning level 3. Compiler warnings were present in four files related to the imaging module. None of the warnings were introduced in this project, and all are evaluated as harmless. It is advised that these warnings are accepted until this part of the code is revised.

Compiler warnings:


EspApiWin.cpp:
>d:\products\veriq\imaging\imaging\esppublictypes.h(1429): warning C4200: nonstandard extension used : zero-sized array in struct/union
> Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
>d:\products\veriq\imaging\imaging\espapiwin.cpp(438): warning C4101: 'Txt' : unreferenced local variable
>d:\products\veriq\imaging\imaging\espapiwin.cpp(456): warning C4101: 'Txt' : unreferenced local variable
Verdict: The nonstandard extension is due to C code-like structures, where the constructor is not used, The unreferenced variable should be resolved when this part of the code is revised.

EspApi.cpp:
>d:\products\veriq\imaging\imaging\esppublictypes.h(1429): warning C4200: nonstandard extension used : zero-sized array in struct/union
> Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
>d:\products\veriq\imaging\imaging\espapi.cpp(420): warning C4800: 'bool_a' : forcing value to bool 'true' or 'false' (performance warning)
>d:\products\veriq\imaging\imaging\espapi.cpp(1966): warning C4800: 'bool_a' : forcing value to bool 'true' or 'false' (performance warning)
>d:\products\veriq\imaging\imaging\espapi.cpp(7339): warning C4101: 'Lvr' : unreferenced local variable
>d:\products\veriq\imaging\imaging\espapi.cpp(7436): warning C4101: 'Lvr' : unreferenced local variable
Verdict: The nonstandard extension is due to C code-like structures, where the constructor is not used. The unreferenced variable and the Boolean warning should be resolved when this part of the code is revised.

Proposed translations

+2
18 mins
Selected

конструктор копирования

Copy Constructor (Copy ctor)

http://squall.cs.ntou.edu.tw/cpp/93spring/CPP-TheBigThree.pd...

it's called if you ever pass a class into a function as an argument, or return a function;

1
2
3
class MyClass { };
MyClass A; // Default ctor
MyClass B(A); // Copy ctor


1
2
3
4
MyClass SomeFunc(MyClass C) // Copy Ctor called to create C
{
return C
}


cout << SomeFunc(A); // Copy ctor called to store the return value of SomeFunc before the cout

http://www.cplusplus.com/forum/general/84314/
Peer comment(s):

agree Oleg Nenashev : https://ru.wikipedia.org/wiki/Конструктор_копирования
34 mins
Спасибо!
agree Leon Ivanihin
23 hrs
Спасибо!
Something went wrong...
4 KudoZ points awarded for this answer.
18 mins

копирующий конструктор

Конструкция a(b) в C++
Something went wrong...
4 mins

конструктор копии

*

--------------------------------------------------
Note added at 6 hrs (2016-04-08 18:54:59 GMT)
--------------------------------------------------

https://msdn.microsoft.com/ru-ru/library/87by589c.aspx
Something went wrong...
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search