isapego commented on code in PR #1891: URL: https://github.com/apache/ignite-3/pull/1891#discussion_r1156947338
########## modules/platforms/cpp/ignite/client/type_mapping.h: ########## @@ -0,0 +1,65 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +#include <ignite/client/table/ignite_tuple.h> + +namespace ignite { + +/** + * Function that specifies how a value of a type should be conversed to @c ignite_tuple. + * + * @tparam T Type of the value. + * @param value Value to convert. + * @return An instance of @c ignite_tuple. + */ +template<typename T> +ignite_tuple convert_to_tuple(T &&value); + +/** + * Function that specifies how an @c ignite_tuple instance should be conversed to specific type. Review Comment: Fixed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
