Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 8be9c69

Browse files
authored
Minor fixes
1 parent 16c1c37 commit 8be9c69

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

docs/modules/ROOT/pages/cpp-client-getting-started.adoc

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
* A text editor or IDE
1616
* Docker
17-
* C++ 11+
17+
* C++ 11+ supporting compiler
1818
* Vcpkg
1919

2020
== Start a Hazelcast Member
@@ -33,19 +33,33 @@ This will start a new Hazelcast member at port 5701. Now, we have a Hazelcast cl
3333
== Install Hazelcast C++ Client
3434
In this tutorial we will use Vcpkg for installing the C++ client. You can also use https://github.com/hazelcast/hazelcast-cpp-client/blob/master/Reference_Manual.md#111-conan-users[Conan] or install from source using CMake as explained https://github.com/hazelcast/hazelcast-cpp-client/blob/master/Reference_Manual.md#113-install-from-source-code-using-cmake[here].
3535

36-
Before starting download and install Vcpkg itself if you haven't already:
36+
37+
Before starting download and install Vcpkg itself if you haven't already: +
38+
for Windows;
3739
[source,bash]
3840
----
3941
git clone https://github.com/microsoft/vcpkg
4042
.\vcpkg\bootstrap-vcpkg.bat
4143
----
4244

43-
First, execute the following to install `hazelcast-cpp-client` ith its `boost` dependencies:
44-
45+
for non-Windows;
46+
[source,bash]
47+
----
48+
git clone https://github.com/microsoft/vcpkg
49+
./vcpkg/bootstrap-vcpkg.sh
50+
----
51+
First, execute the following to install `hazelcast-cpp-client` with its `boost` dependency: +
52+
for Windows;
4553
[source,bash]
4654
----
47-
.\vcpkg\vcpkg install hazelcast-cpp-client
55+
.\vcpkg\vcpkg.exe install hazelcast-cpp-client
56+
----
57+
for non-Windows;
58+
[source,bash]
4859
----
60+
./vcpkg/vcpkg install hazelcast-cpp-client
61+
----
62+
4963
After the installation, the library is available for usage.
5064
For example, if you are using CMake for your builds, you can use the following cmake build command with the `CMAKE_TOOLCHAIN_FILE` cmake option to be the `vcpkg.cmake`.
5165

@@ -74,6 +88,7 @@ Then, You can include the library and start a client using the following code:
7488
7589
int main() {
7690
auto hz = hazelcast::new_client().get();
91+
return 0;
7792
}
7893
----
7994

@@ -84,7 +99,7 @@ The following line creates and starts a new Hazelcast C++ client with the defaul
8499
auto hz = hazelcast::new_client().get();
85100
----
86101

87-
The client automatically connects to the Hazelcast member available on the local machine.
102+
The client automatically connects to the Hazelcast member available on the local machine. Client also automatically disconnects upon its destruction.
88103

89104
== Use Map
90105

@@ -200,4 +215,4 @@ There are a lot of things that you can do with the C++ client. For more, such as
200215
check out our https://github.com/hazelcast/hazelcast-cpp-client[client repository.]
201216

202217
If you have any questions, suggestions, or feedback please do not hesitate to reach out to us via https://slack.hazelcast.com/[Hazelcast Community Slack.]
203-
Also, please take a look at https://github.com/hazelcast/hazelcast-cpp-client/issues[the issue list] if you would like to contribute to the client.
218+
Also, please take a look at https://github.com/hazelcast/hazelcast-cpp-client/issues[the issue list] if you would like to contribute to the client.

0 commit comments

Comments
 (0)