<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[GingerJWS的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/GingerJWS</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; GingerJWS]]></copyright><item><title><![CDATA[转移到 http://blog.ggt8702.com]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5975942</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5975942</guid><author>GingerJWS</author><pubDate>Sat, 30 Oct 2010 12:46:00 +0800</pubDate><description><![CDATA[感觉cnblogs写方便很多，转过去了，http://www.cnblogs.com/gingerjws/]]></description><category></category></item><item><title><![CDATA[让MessageBox出现在窗口而非桌面中央]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5829128</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5829128</guid><author>GingerJWS</author><pubDate>Sat, 21 Aug 2010 19:43:00 +0800</pubDate><description><![CDATA[messageboxex.h文件  // -------------------------------------------------------------------------   namespace messsageboxex {    // -------------------------------------------------------------------------   int MessageBox( HWND hwnd, LPCTSTR szText, LPCTSTR ]]></description><category></category></item><item><title><![CDATA[贴一个分割字符串的类]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5828995</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5828995</guid><author>GingerJWS</author><pubDate>Sat, 21 Aug 2010 17:47:00 +0800</pubDate><description><![CDATA[template 
void Split(
	const TString &str,
	const TString &match,
	TVector &res,
	bool fullMatch = false
	)
{
	typedef TString::size_type (TString::*find_t)(
		const TString&, 
		TString::size_type ) const;

	TString::size_type start = 0, skip ]]></description><category></category></item><item><title><![CDATA[神奇的sizeof]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5778279</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5778279</guid><author>GingerJWS</author><pubDate>Sat, 31 Jul 2010 11:36:00 +0800</pubDate><description><![CDATA[关于sizeof运算符的使用和注意事项，这篇http://hi.baidu.com/xung/blog/item/14267827c0f42c06918f9d04.html有比较好的说明，可以看下。  sizeof最主要的用途是计算大小，以避免代码中出现一些写死的机器相关的值。另外它还是一个很神奇的运算符，由于它并不会真正执行表达式而仅仅返回大小的特性，你可以做一些很棒的事。  看一个例子，它来自LOKI库：  Typelist要管理一堆Type，某些操作需要知道其中两个Type的继承关系，如何用代码做到？]]></description><category></category></item><item><title><![CDATA[Loki系列二：Typelist的基本操作2]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5778276</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5778276</guid><author>GingerJWS</author><pubDate>Sat, 31 Jul 2010 11:35:00 +0800</pubDate><description><![CDATA[1. append操作   append物可以是NullType、Type T、另一个Typelist          template  struct Append;          template  struct Append // NullType          {              typedef NullType Result;          };          template  struct Append // Type T          {           ]]></description><category></category></item><item><title><![CDATA[Loki系列二：Typelist的基本操作1]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5778274</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5778274</guid><author>GingerJWS</author><pubDate>Sat, 31 Jul 2010 11:34:00 +0800</pubDate><description><![CDATA[1. 计算Typelist长度          template  struct Length;          template  struct Length          {              enum { value = 0 };          };          template           struct Length >          {              enum { value = 1 + Length::value };          };  ]]></description><category></category></item><item><title><![CDATA[Loki系列一：优雅的Typelist]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5778272</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5778272</guid><author>GingerJWS</author><pubDate>Sat, 31 Jul 2010 11:33:00 +0800</pubDate><description><![CDATA[Typelist定义：   template   struct Typelist  {  typedef T Head;  typedef U Tail;  };  约定为Typelist的最后一个元素 : NullType 定义class NullType {};  约定Tail可以为另一个Typelist，这样就可以无限扩充，管理任意多的类型了  MakeTypelist定义：（为18个类型以内的Typelist提供帮助，足够用了）  template     struct MakeTypelist  ]]></description><category></category></item><item><title><![CDATA[神奇的luabind]]></title><link>https://blog.youkuaiyun.com/GingerJWS/article/details/5778262</link><guid>https://blog.youkuaiyun.com/GingerJWS/article/details/5778262</guid><author>GingerJWS</author><pubDate>Sat, 31 Jul 2010 11:28:00 +0800</pubDate><description><![CDATA[c++源文件如下  #include   #include   void greet()  {      std::cout   scope def(char const* name, F f, Policies const& policies)  {      return scope(std::auto_ptr(          new detail::function_registration(name, f, policies)));  }  template   scope def(char c]]></description><category></category></item></channel></rss>