Difference between revisions of "使用到的boost库"

From KlayGE
Jump to: navigation, search
m
Line 8: Line 8:
 
*Regex(仅用于工具)
 
*Regex(仅用于工具)
 
*Signals
 
*Signals
*System(没有直接使用)
+
*System
 
*Thread
 
*Thread
  
Line 15: Line 15:
 
*Algorithm
 
*Algorithm
 
*Any
 
*Any
*Array
+
*Array(可以用C++11代替)
 
*Assign
 
*Assign
 
*Assert
 
*Assert
Line 21: Line 21:
 
*Circular Buffer
 
*Circular Buffer
 
*Container
 
*Container
*Foreach
+
*Foreach(可以用C++11代替)
 
*Function
 
*Function
 
*Functional/Hash
 
*Functional/Hash
*Integer
+
*Integer(可以用C++11代替)
 
*Interprocess
 
*Interprocess
 
*Lexical Cast
 
*Lexical Cast
Line 34: Line 34:
 
*Ref
 
*Ref
 
*Smart Ptr
 
*Smart Ptr
*Static Assert
+
*Static Assert(可以用C++11代替)
 
*Tokenizer
 
*Tokenizer
*Tuple
+
*Tuple(可以用C++11代替)
*Type Traits
+
*Type Traits(可以用C++11代替)
*Typeof
+
*Typeof(可以用C++11代替)
 
*Unordered
 
*Unordered
 
*Utility
 
*Utility
  
 
随着支持C++11的编译器的普及,以后打算逐渐切换到使用C++11的库。只有在不支持C++11的编译器上才采用boost。
 
随着支持C++11的编译器的普及,以后打算逐渐切换到使用C++11的库。只有在不支持C++11的编译器上才采用boost。

Revision as of 05:17, 31 December 2012

KlayGE的很多代码都依赖于boost。以下列出使用到boost中的各个部分。

需要编译才能使用的boost库:

  • Chrono(没有直接使用)
  • Date Time
  • Filesystem
  • Program Options(仅用于工具)
  • Regex(仅用于工具)
  • Signals
  • System
  • Thread


只有头文件的boost库:

  • Algorithm
  • Any
  • Array(可以用C++11代替)
  • Assign
  • Assert
  • Bind
  • Circular Buffer
  • Container
  • Foreach(可以用C++11代替)
  • Function
  • Functional/Hash
  • Integer(可以用C++11代替)
  • Interprocess
  • Lexical Cast
  • Member Function
  • MPL
  • Operators
  • Pool
  • Random
  • Ref
  • Smart Ptr
  • Static Assert(可以用C++11代替)
  • Tokenizer
  • Tuple(可以用C++11代替)
  • Type Traits(可以用C++11代替)
  • Typeof(可以用C++11代替)
  • Unordered
  • Utility

随着支持C++11的编译器的普及,以后打算逐渐切换到使用C++11的库。只有在不支持C++11的编译器上才采用boost。