Hello Everyone, I used the Alembic tool in one of my project to manage the versioning of Database in Multi Tenant architecture. My problem was to make the version of each database whatsoever we are making changes in database tables. There should be a provision of revert back also. in…
To install the python in windows plateform, Please follow the below steps: Step 1: Install the Scoop, open the power shell and run the below commands Step 4: Run the “python” in cmdr, you will see popup window to install the python Step 5: Click on install, then after you…
Note that those functions not carrying the keyword virtual in their declaration do not generally appear in the virtual method table. Whenever a class itself contains virtual functions or overrides virtual functions from a parent class the compiler builds a vtable for that class. The Virtual table contains the array…
A copy constructor is called when an object is passed by value. Copy constructor itself is a function. So if we pass argument by value in a copy constructor, a call to copy constructor would be made to call copy constructor which becomes a non-terminating chain of calls. Therefore compiler…
To handle the request params those coming in REST api, There are multiple ways to cater the problem. But if we have smarter way to resolve it then that will be cake walk. So, Here i would like to share the information to validate the request param weather it’s coming…
Sometimes it is useful for a constructor to be able to call another constructor of the same class. This process is called delegating constructors (or constructor chaining).
There is one case i.e. calling the another constructor in member initialize list, which is acceptable…
C++ 11 introduces lambda allow you to write the inline, anonymous functor which are cleaner to read and potentially simpler to maintain…
C++11 adds a new type of reference called an r-value reference. An r-value reference is a reference that is designed to be initialized with an r-value (only)…
C++11 adds two inheritance control keywords: override and final. override ensures that an overriding virtual function declared in a derived class has the same signature as that of the base class. final blocks further derivation of a class and further overriding of a virtual function. …
C++11 defines two new functions in service of move semantics: a move constructor, and a move assignment operator. Whereas the goal of the copy constructor and copy assignment is to make a copy of one object to another, the goal of the move constructor and move assignment is to move…