c++


Check if two instances of my class are equal using templates


I want to check if two instances of my class are equal(in C++), there are no pointers in the class. I understand that I would need to override the = operator and manually check all the fields. I am aware of that solution. The problem is that I have like around 100 members in the class, and I would want to do it for many classes of similar sizes.
My questions is if there is a way to templatize this? Is this possible? I am fine using velocity.

Related Links

Microsoft C exception: std::bad_alloc at memory location 0x0017F5E0
How to parallellize an outer loop with openMP with serial inner loop for array addition
C++ Get HTML Source
Stack will only display first value?
Warning: No Previous Declaration - C++ [closed]
C++ 32767 text-based game [closed]
How do I print what I see on the screen/debugger with as few lines of code as possible? [closed]
radix select using cuda
Creating a random number of objects
Third Party library requires different version of the same DLL my application does
Visual Studio Profiler only shows msvcr110.dll
C++: temperature converter - why calculation return 0 [duplicate]
no matching function for call to std::list::remove_if( function()::predicate )
Convincing a colleague about their if not being nested
Issue with Item System regarding Inheritance
Returning array of character error in c++?

Categories

HOME
gnuplot
data-warehouse
ignite
wildfly
modularity
datatable
chart.js
animate.css
windows-forms-designer
android-gradle
purescript
bluetooth-lowenergy
chapel
pivot-table
slim
windows-authentication
geometry
ninja
webassembly
httpresponse
axon
shogun
junit4
firebreath
nlog
nattable
silex
cut
structured-data
sandbox
github-api
ctype
graphic
mahapps.metro
white
grunt-connect-proxy
chmod
gmail-contextual-gadgets
gperftools
polymer-serve
angular-daterangepicker
dos
scada
xfs
model-driven
azure-sql-server
maximo-anywhere
jes
simplemodal
falcor
google-truth
qnx
reduce
api-manager
subtitle
object-oriented-analysis
release-management
jquery-events
android-gson
magicalrecord
sceditor
rollbar
google-chrome-arc
svg-edit
plone-4.x
dex2oat
correspondence-analysis
test-and-target
bitcount
angular-component-router
eclipse-emf-ecore
yard
fody-propertychanged
sin
xlet
cpanm
protection
kermit
drilldown
kismet-wireless
cleartool
rot13
avaloq-script
nools
kooboo
restkit-0.20
commission-junction
craftyjs
divshot
icommand
circular-reference
cvxopt
jquery-mobile-collapsible
icarousel
strtotime
grit
mono-service
hibernate-annotations
windows-networking
crashrpt
background-music
set-include-path
mahjong
validationsummary
dynamic-css
html-rendering
visual-programming

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App