3
我使用boost property_tree加载了一个ini文件。我的ini文件大多包含“简单”类型(即字符串,整数,双精度等),但我确实有一些代表数组的值。Boost property_tree - 使用简单的数组或容器
[Example]
thestring = string
theint = 10
theintarray = 1,2,3,4,5
thestringarray = cat, dog, bird
我无法搞清楚如何获得提振programmagically负载theintarray
和thestringarray
到像vector
或list
的容器对象。我注定只是把它作为一个字符串读出来解析它自己吗?
谢谢!
我是新来提高......但只有不拆分处理字符串?所以我不能用这个函数来填充'vector`? –
2011-02-13 22:44:08