Skip to content

Commit 81ce720

Browse files
committed
Export only needed specialization of
Value::get<>() Change-Id: Ibe49f7d958282b2ad70b7712965a52634c542436
1 parent de1e64e commit 81ce720

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

devapi/document.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ using std::endl;
5252

5353

5454
template <>
55-
PUBLIC_API
5655
common::Value Value::get<common::Value>() const {
5756
if (getType() == DOCUMENT) {
5857
return common::Value::Access::mk_json(m_doc.get_json());

include/mysqlx/devapi/document.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ class Value
392392

393393

394394
template<typename T>
395-
PUBLIC_API
396395
T get() const;
397396

398397
//@}
@@ -740,6 +739,9 @@ try
740739
{}
741740
CATCH_AND_WRAP
742741

742+
template <>
743+
PUBLIC_API common::Value Value::get<common::Value>() const;
744+
743745
template<>
744746
inline
745747
int Value::get<int>() const

0 commit comments

Comments
 (0)