Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Commented Unassigned: Use buried headers in subfolder [5]

$
0
0

Requesting users to #include <json.h> is not a good idea as the header name is far from being unique.

Please, use of buried headers and deploy all headers in dedicated subfolder, i.e. #include <cpprest/json.h> or <casablanca/json.h>
as it is common across quality C++ libraries like Boost.

With subfolder, those who want including as <json.h> can still do so, by pointing to cpprest include directory directly.

The current files layout is an important issue.

It alsa was raised by others in comments to [The C++ REST SDK](http://blogs.msdn.com/b/vcblog/archive/2013/02/26/the-c-rest-sdk-quot-casablanca-quot.aspx) announcement:

```
Joshua Warner 02-27-2013 5:51 AM
Why, with such generic headers as uri.h and file_stream.h, do you not namespace them, e.g.
#include <casablanca/uri.h>
```
Comments: This is a good point and we will see what we can do about it in an upcoming release. The next release will be mostly a straight bug-fix release, but we should do something in a subsequent drop. Niklas

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>