Skip to content

Instantly share code, notes, and snippets.

@IDisposable
Last active March 8, 2023 20:43
Show Gist options
  • Save IDisposable/5702227 to your computer and use it in GitHub Desktop.
Save IDisposable/5702227 to your computer and use it in GitHub Desktop.
It's another holy war!
template <class Religion_1, class Religion_2>
class Holy_War
{
public:
Holy_War(const Religion_1::Dogma & IN_Side_1, const Religion_2::Dogma & IN_Side_2)
: M_Side_1(IN_Side_1), M_Side_2(IN_Side_2)
{}
const string & Heres_What_Side_1_Thinks(const string & IN_Side_1_Comments, const string & IN_Side_2_Comments) const
{
return M_Side_1.Generate_Response(IN_Side_1_Comments);
}
const string & Heres_What_Side_2_Thinks(const string & IN_Side_1_Comments, const string & IN_Side_2_Comments) const
{
return M_Side_2.Generate_Response(IN_Side_2_Comments);
}
private:
const Religion_1::Dogma M_Side_1; // Constant dogma 1.
const Religion_2::Dogma M_Side_2; // Constant dogma 2.
};
---------------------
Compiling...
Holy_War.cpp
(11) : warning C4100: 'IN_Side_2_Comments' : unreferenced formal parameter
(16) : warning C4100: 'IN_Side_1_Comments' : unreferenced formal parameter
Linking...
Creating browse info file...
Holy_War.exe - 0 error(s), 2 warning(s)
--------------------
@IDisposable
Copy link
Author

IDisposable commented Jun 3, 2013

p.s. my first posting of this that I can find was Jun 4, 1998:
https://groups.yahoo.com/neo/groups/win_tech_off_topic/conversations/messages/33338

@BranislavLazic
Copy link

And noooobody wins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment