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