Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 10 Apr 2005
Offline Last Active Today, 02:05 AM

Posts I've Made

In Topic: OculusVR acquired and open sourced RakNet

07 July 2014 - 10:33 PM

Wow, didn't see that one coming. Good stuff!

In Topic: [C++] Is there an easy way to mimic printf()'s behavior?

03 April 2014 - 08:15 AM

Nice one Aardvajk. But ouch, all those template arguments. My shot at a C++11 version:
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>

namespace detail {

template<typename TOStream, typename... TArgs>
void print(TOStream& os, TArgs&&... args) {}

template<typename TOStream, typename TArg, typename... TArgs>
void print(TOStream& os, TArg&& arg, TArgs&&... args)
	print(os << std::forward<TArg>(arg), std::forward<TArgs>(args)...);


template<typename... TArgs>
std::string print(TArgs&&... args)
	std::ostringstream os;
	detail::print(os, std::forward<TArgs>(args)...);
	return os.str();

int main()
	std::cout << print("Hello", std::boolalpha, std::fixed, std::setprecision(2), ' ', 1, ' ', 2.0, ' ', true) << std::endl;
	return 0;

In Topic: North Korean Run 'n' Gun

19 March 2014 - 08:20 PM


Any progress? I hope the project is coming along well!

In Topic: North Korean Run 'n' Gun

04 February 2014 - 02:26 AM

I am getting seriously stoked for this! smile.png

Edit: Haha, I just saw that "The Worm" is the second playable character. Brilliant!

In Topic: North Korean Run 'n' Gun

18 January 2014 - 11:45 PM

The concept sounds amazing! Love the pixel art. Don't get discouraged by the apparent lack of humor around here...

I hope Dennis Rodman will make a surprise appearance, too. biggrin.png