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

argument of type “int” incompatible with parameter of type “int”
When is the correct time to call restoreState for QHeaderView?
How does it pass lvalue reference to std::forward with CRTP?
Using lower_bound function in loop is giving runtime error?
Problems with rand(), always taking the same random generated number [duplicate]
Reading Credentials file fails with error 32
The mechanism of shared_ptr
C++ specialized function template
Compiler errors with cmath on Mac OS X
Array of fstream in C++
Error: (E107) bind interface to port failed: interface already bound to port: port 'MC8051_ALU().AM.port_27' (sc_in)
Error LINK2019 when I try to make a training for face detection [duplicate]
Quickest way to iterate in a C++ vector
How can I use snmp++ to enable/disable a switch port?
i wan't to use char* in this code instead of string how? [closed]
Using inRange() in OpenCV to detect colors in a range

Categories

HOME
selenium-webdriver
set
google-speech-api
sharppcap
userform
powerbuilder
login
google-home
jboss-eap-6
cordova-plugins
crc
google-cardboard
playframework-2.5
jasperserver
bayesian
codecvt
spring-boot-actuator
skybot
cloudify
azure-storage-blobs
jqxwidgets
phylogeny
filepicker.io
geckofx
affiliate
graphic
mahapps.metro
wasapi
c#-to-f#
post-build-event
layer
tablet
database-theory
dos
fitnesse-slim
nsset
ctags
strconv
opensmtpd
lab-color-space
unicode-string
powerview
launch-agent
self-referencing-table
pdfobject
countdowntimer
sharepoint-userprofile
parrot
jodconverter
nsthread
agile-project-management
xlconnect
idfa
antivirus-integration
snap-lang
customdialog
frontpage
idiorm
mindbody
gridsplitter
supercsv
xcode-bots
window-position
lastaccesstime
geographical-information
worksite-sdk
avaloq-script
tankauth
javascript-databinding
casbah
impactjs
application-integration
worklight-studio
qglviewer
boost-spirit-karma
outlook-2003
mercurial-subrepos
timezoneoffset
icefaces-1.8
ctime
pubchem
html-validation
soaplite
web-setup-project
fibonacci-heap
windows-explorer
iphone-sdk-4.1
entityreference

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile