Skip to content

Commit 3ae98a5

Browse files
committed
Fixes #260 ("Stupid errors in documentation")
1 parent 499225d commit 3ae98a5

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

doc/interprocess.qbk

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ just as if it was a file:
426426

427427
[c++]
428428

429-
using boost::interprocess;
429+
using namespace boost::interprocess;
430430
shared_memory_object shm_obj
431431
(create_only //only create
432432
,"shared_memory" //name
@@ -437,7 +437,7 @@ just as if it was a file:
437437

438438
[c++]
439439

440-
using boost::interprocess;
440+
using namespace boost::interprocess;
441441
shared_memory_object shm_obj
442442
(open_or_create //open or create
443443
,"shared_memory" //name
@@ -448,7 +448,7 @@ just as if it was a file:
448448

449449
[c++]
450450

451-
using boost::interprocess;
451+
using namespace boost::interprocess;
452452
shared_memory_object shm_obj
453453
(open_only //only open
454454
,"shared_memory" //name
@@ -470,7 +470,7 @@ still memory mapped by other processes:
470470

471471
[c++]
472472

473-
using boost::interprocess;
473+
using namespace boost::interprocess;
474474
shared_memory_object::remove("shared_memory");
475475

476476

@@ -491,7 +491,7 @@ is a `memory_mappable` object:
491491

492492
[c++]
493493

494-
using boost::interprocess;
494+
using namespace boost::interprocess;
495495
std::size_t ShmSize = ...
496496

497497
//Map the second half of the memory
@@ -773,7 +773,7 @@ achieved in [*Boost.Interprocess] creating a `file_mapping` object:
773773

774774
[c++]
775775

776-
using boost::interprocess;
776+
using namespace boost::interprocess;
777777
file_mapping m_file
778778
("/usr/home/file" //filename
779779
,read_write //read-write mode
@@ -795,7 +795,7 @@ devices that have also mapping capabilities:
795795

796796
[c++]
797797

798-
using boost::interprocess;
798+
using namespace boost::interprocess;
799799
std::size_t FileSize = ...
800800

801801
//Map the second half of the file
@@ -1128,7 +1128,7 @@ processes the memory segment can be mapped in a different address in each proces
11281128

11291129
// ...
11301130

1131-
using boost::interprocess;
1131+
using namespace boost::interprocess;
11321132

11331133
//Open a shared memory segment
11341134
shared_memory_object shm_obj
@@ -2294,7 +2294,7 @@ Without lock transfer operations, this would be coded like this:
22942294

22952295
[c++]
22962296

2297-
using boost::interprocess;
2297+
using namespace boost::interprocess;
22982298
interprocess_upgradable_mutex mutex;
22992299

23002300
//Acquire exclusive lock
@@ -2330,7 +2330,7 @@ We can use [*lock transfer] to simplify all this management:
23302330

23312331
[c++]
23322332

2333-
using boost::interprocess;
2333+
using namespace boost::interprocess;
23342334
interprocess_upgradable_mutex mutex;
23352335

23362336
//Acquire exclusive lock
@@ -2927,7 +2927,7 @@ the message queue if shared memory is used).
29272927

29282928
[c++]
29292929

2930-
using boost::interprocess;
2930+
using namespace boost::interprocess;
29312931
//Create a message_queue. If the queue
29322932
//exists throws an exception
29332933
message_queue mq
@@ -2939,7 +2939,7 @@ the message queue if shared memory is used).
29392939

29402940
[c++]
29412941

2942-
using boost::interprocess;
2942+
using namespace boost::interprocess;
29432943
//Creates or opens a message_queue. If the queue
29442944
//does not exist creates it, otherwise opens it.
29452945
//Message number and size are ignored if the queue
@@ -2953,7 +2953,7 @@ the message queue if shared memory is used).
29532953

29542954
[c++]
29552955

2956-
using boost::interprocess;
2956+
using namespace boost::interprocess;
29572957
//Opens a message_queue. If the queue
29582958
//does not exist throws an exception.
29592959
message_queue mq
@@ -2965,7 +2965,7 @@ The message queue is explicitly removed calling the static `remove` function:
29652965

29662966
[c++]
29672967

2968-
using boost::interprocess;
2968+
using namespace boost::interprocess;
29692969
message_queue::remove("message_queue");
29702970

29712971
The function can fail if the message queue is still being used by any process.

0 commit comments

Comments
 (0)