Using concurrently 2 versions of boost

后端 未结 3 840
予麋鹿
予麋鹿 2020-12-18 22:47

I\'m using RHEL 5.3, which is shipped with gcc 4.1.2 and boost 1.33. There\'re some features I want, that are missing in the boost 1.33. Therefore the thought was to upgrad

3条回答
  •  旧巷少年郎
    2020-12-18 23:08

    With a bit of luck (and a lot of care) you can probably get away with using entirely new headers. For almost anything else, it could get ugly in a hurry, because some parts of Boost refer to other parts, and if some v. 1.33 code accidentally loads a v. 1.43 header for its dependency, there's a pretty good chance you're going to get some problems as a result -- about the best you can hope for is a quick, clean death (crash) at that point, but you might easily get much worse (e.g., silent data corruption).

提交回复
热议问题